public static void CloseForm()
        {
            if (innerForm.InvokeRequired)
            {
                innerForm.Invoke(new Action(() => { innerForm.Close(); }));
            }
            else
            {
                innerForm.Close();
            }
            timer.Stop();

            thread    = null;
            innerForm = null;
        }
 public static void ShowForm()
 {
     innerForm = new WelcomeDialog();
     Application.Run(innerForm);
 }
Ejemplo n.º 3
0
 private void aboutXrmToolBoxToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
     var aForm = new WelcomeDialog(version, false) { StartPosition = FormStartPosition.CenterParent };
     aForm.ShowDialog(this);
 }
Ejemplo n.º 4
0
 private Task LaunchWelcomeDialog()
 {
     return new Task(() => this.Invoke(new Action(() =>
     {
         var version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
         var blackScreen = new WelcomeDialog(version) { StartPosition = FormStartPosition.CenterScreen };
         blackScreen.ShowDialog(this);
     })));
 }