Пример #1
0
        void ShowStartupDialog()
        {
            FirstStartupDialog d = new FirstStartupDialog();

            Dialog.Show(d, () =>
            {
                CreateProfile(d.ProfileName.Text, d.EmailAddress.Text);
            });
        }
Пример #2
0
        void profile_Click(object sender, EventArgs e)
        {
            FirstStartupDialog d = new FirstStartupDialog {
                MessageBoxButtons = System.Windows.Forms.MessageBoxButtons.OKCancel
            };

            if (Program.Instance.Profile != null)
            {
                d.EmailAddress.Text = Program.Instance.Profile.EmailAddress;
                d.ProfileName.Text  = Program.Instance.Profile.Name;
            }
            Dialog.Show(d, () =>
            {
                if (d.DialogResult == System.Windows.Forms.DialogResult.OK)
                {
                    ChallengeMapMenuState.CreateProfile(d.ProfileName.Text, d.EmailAddress.Text);
                }
            });
        }
 void ShowStartupDialog()
 {
     FirstStartupDialog d = new FirstStartupDialog();
     Dialog.Show(d, () =>
     {
         CreateProfile(d.ProfileName.Text, d.EmailAddress.Text);
     });
 }
 void profile_Click(object sender, EventArgs e)
 {
     FirstStartupDialog d = new FirstStartupDialog { MessageBoxButtons = System.Windows.Forms.MessageBoxButtons.OKCancel };
     if (Program.Instance.Profile != null)
     {
         d.EmailAddress.Text = Program.Instance.Profile.EmailAddress;
         d.ProfileName.Text = Program.Instance.Profile.Name;
     }
     Dialog.Show(d, () =>
     {
         if(d.DialogResult == System.Windows.Forms.DialogResult.OK)
             ChallengeMapMenuState.CreateProfile(d.ProfileName.Text, d.EmailAddress.Text);
     });
 }