MapSuiteGisEditor/GisEditorInfrastructure/Plugins/Styles/StyleBuilder/StyleBuilderWindow.xaml.cs
/// <summary>
/// Handles the MouseDown event of the Grid control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.Windows.Input.MouseButtonEventArgs" /> instance containing the event data.</param>
Handles the MouseDown event of the Grid control.
Handles the MouseDown event of the Grid control .
[Obfuscation]
        private void Grid_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            if (Validate())
            {
                styleBuilderViewModel.IsRootNodeSelected = true;
                RootNodePanel.Background = new SolidColorBrush(Color.FromRgb(173, 216, 230));
                InitializeDBClickTimer();
                if (e.ChangedButton == MouseButton.Left)
                {
                    rootNodeMouseDownCount++;
                }
                if (!rootNodeClickTimer.IsEnabled)
                {
                    rootNodeClickTimer.Start();
                }
            }
            else e.Handled = true;
        }
[ Obfuscation ] private void Grid_MouseDown ( object sender , System . Windows . Input . MouseButtonEventArgs e ) { if ( Validate ( ) ) { styleBuilderViewModel . IsRootNodeSelected = true ; RootNodePanel . Background = new SolidColorBrush ( Color . FromRgb ( 173 , 216 , 230 ) ) ; InitializeDBClickTimer ( ) ; if ( e . ChangedButton == MouseButton . Left ) { rootNodeMouseDownCount ++ ; } if ( ! rootNodeClickTimer . IsEnabled ) { rootNodeClickTimer . Start ( ) ; } } else e . Handled = true ; }
Handles the MouseDown event of the Grid control.
Handles the MouseDown event of the Grid control .
sender
object
The source of the event.
The source of the event .
e
System.Windows.Input.MouseButtonEventArgs
The  instance containing the event data.
The instance containing the event data .