Octgn.Play.Gui.CardControl.MouseButtonDoubleClickAction C# (CSharp) Method

MouseButtonDoubleClickAction() private method

private MouseButtonDoubleClickAction ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void
        private void MouseButtonDoubleClickAction(MouseButtonEventArgs e)
        {
            base.OnMouseDoubleClick(e);

            // Double-click ends any manipulation which may be in progress. 
            // Otherwise bugs may happen (e.g. if the default action moves the card)
            if (IsMouseCaptured) ReleaseMouseCapture();
            _dragSource = DragSource.None;


            Program.GameEngine.EventProxy.OnCardDoubleClick_3_1_0_0(Card, (int)e.ChangedButton, downKeys);
            Program.GameEngine.EventProxy.OnCardDoubleClick_3_1_0_1(Card, (int)e.ChangedButton, downKeys);
            Program.GameEngine.EventProxy.OnCardDoubleClicked_3_1_0_2(Card, (int)e.ChangedButton, downKeys);
            if (e.ChangedButton == MouseButton.Left)
            {
                e.Handled = true;
                if (GroupControl != null) GroupControl.ExecuteDefaultAction(Card);
            }
        }