MapSuiteGisEditor/GisEditorInfrastructure/Plugins/Styles/StyleBuilder/StyleBuilderWindow.xaml.cs
/// <summary>
/// Handles the Click event of the ApplyButton control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param>
Handles the Click event of the ApplyButton control.
Handles the Click event of the ApplyButton control .
[Obfuscation]
        private void ApplyButton_Click(object sender, RoutedEventArgs e)
        {
            if (Validate())
            {
                if (!IsValid(ConfigureLayout))
                {
                    System.Windows.Forms.MessageBox.Show(GisEditor.LanguageManager.GetStringResource("StyleBuilderWindowStyleInvalidText"));
                }
                else
                {
                    styleBuilderResult = new StyleBuilderResult();
                    styleBuilderResult.Canceled = false;
                    styleBuilderResult.FromZoomLevelIndex = FromZoomLevelIndex;
                    styleBuilderResult.ToZoomLevelIndex = ToZoomLevelIndex;
                    styleBuilderResult.CompositeStyle = ResultStyle;
                    styleBuilderViewModel.ApplyStyles(styleBuilderResult);
                }
            }
            else e.Handled = true;
        }
[ Obfuscation ] private void ApplyButton_Click ( object sender , RoutedEventArgs e ) { if ( Validate ( ) ) { if ( ! IsValid ( ConfigureLayout ) ) { System . Windows . Forms . MessageBox . Show ( GisEditor . LanguageManager . GetStringResource ( " " ) ) ; } else { styleBuilderResult = new StyleBuilderResult ( ) ; styleBuilderResult . Canceled = false ; styleBuilderResult . FromZoomLevelIndex = FromZoomLevelIndex ; styleBuilderResult . ToZoomLevelIndex = ToZoomLevelIndex ; styleBuilderResult . CompositeStyle = ResultStyle ; styleBuilderViewModel . ApplyStyles ( styleBuilderResult ) ; } } else e . Handled = true ; }
Handles the Click event of the ApplyButton control.
Handles the Click event of the ApplyButton control .
//OnApplied(e);
sender
object
The source of the event.
The source of the event .
e
RoutedEventArgs
The  instance containing the event data.
The instance containing the event data .