AsterixDisplayAnalyser.FormMain.gMapControl_MouseDoubleClick C# (CSharp) Метод

gMapControl_MouseDoubleClick() приватный Метод

private gMapControl_MouseDoubleClick ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
Результат void
        private void gMapControl_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (e.Button == System.Windows.Forms.MouseButtons.Right)
            {
                DisplayRightClickOptions MyForm = new DisplayRightClickOptions();
                MyForm.StartPosition = FormStartPosition.Manual;
                Point relativeToForm = this.PointToScreen(new Point(e.X, e.Y));

                if (this.checkBoxFullscreen.Checked)
                    MyForm.Location = new Point(relativeToForm.X - 25, relativeToForm.Y + 55);
                else
                    MyForm.Location = new Point(relativeToForm.X + 95, relativeToForm.Y + 55);

                MyForm.Show();
            }
        }
FormMain