iSpyApplication.MainForm.PbMouseDown C# (CSharp) Method

PbMouseDown() private method

private PbMouseDown ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void
        void PbMouseDown(object sender, MouseEventArgs e)
        {
            var ctrl = sender as PreviewBox;
            if (ctrl != null)
            {
                ctrl.Focus();
                switch (e.Button)
                {
                    case MouseButtons.Right:
                        ContextTarget = ctrl;
                        ctrl.Selected = true;
                        ctxtPlayer.Show(ctrl, new Point(e.X, e.Y));
                        break;
                }
            }
            _lastClicked = flowPreview;
        }
MainForm