Esempio n. 1
0
 private void btnSetupUsbStick_Click(object sender, System.EventArgs e)
 {
     if (_isDirty)
     {
         MessageBox.Show("You should save changes first", Text);
         return;
     }
     using (var frmUsbSetup = new frmUsbSetup {
         Account = Account
     })
     {
         frmUsbSetup.ShowDialog(this);
     }
 }
Esempio n. 2
0
        private void tsbSetupUsbStick_Click(object sender, EventArgs e)
        {
            var account = SelectedAccount();

            if (account == null)
            {
                return;
            }

            using (var frmUsbSetup = new frmUsbSetup {
                Account = account
            })
            {
                frmUsbSetup.ShowDialog(this);
            }
        }