Пример #1
0
 private void pairToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var formConfig = new FormConfiguration();
     if (formConfig.ShowDialog() != DialogResult.OK)
     {
         LoadConfig();
     }
 }
Пример #2
0
        private void CheckForConfiguration()
        {
            if (String.IsNullOrEmpty((string)Settings.Default["Username"]))
            {
                var reply = MessageBox.Show(
                        Resources.FormMain_CheckForConfiguration_The_Bridge_has_not_been_paired_yet__Do_you_wish_to_do_this_now__Note__Without_pairing_this_program_cannot_do_anything_,
                        Resources.FormMain_CheckForConfiguration_Not_paired_yet_, MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
                if (reply == DialogResult.Yes)
                {
                    var formConfig = new FormConfiguration();
                    formConfig.ShowDialog();

                }
                else
                {
                    return;
                }

            }
            LoadConfig();
        }