Ejemplo n.º 1
0
 public static GPSDialogResult Show()
 {
     MessageBox = new GPSDialog();
     MessageBox.Location = new System.Drawing.Point((Screen.PrimaryScreen.Bounds.Width / 2) - (MessageBox.Width / 2),
         (Screen.PrimaryScreen.Bounds.Height / 2) - (MessageBox.Height / 2));
     result = GPSDialogResult.None;
     MessageBox.ShowDialog();
     return result;
 }
Ejemplo n.º 2
0
        private void btConfirmar_Click(object sender, EventArgs e)
        {
            if (radioBluetooth.Checked)
            {
                result = GPSDialogResult.Bluetooth;
            }
            if (radioTrimble.Checked)
            {
                result = GPSDialogResult.Trimble;
            }

            MessageBox.Close();
        }