Exemple #1
0
 /// <summary>
 /// EVENT: Called when the launch GUI button is pressed
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnGUILaunch_Click(object sender, EventArgs e)
 {
     //Application.Run(new frmTeslaGui(this));
     Form launch = new frmTeslaGui(this);
     this.Hide();
     launch.Show();
 }
Exemple #2
0
        /// <summary>
        /// Initializes the form and starts the GUI by default
        /// Gives choice if control is held
        /// </summary>
        public frmChoose()
        {
            InitializeComponent();
            tmrHide = new System.Timers.Timer(500);
            tmrHide.Elapsed += new System.Timers.ElapsedEventHandler(tmrHide_Elapsed);
            hider = new HideSelf(HideFunction);

            //autolaunch the GUI
            if (ModifierKeys != Keys.Control)
            {
                Form launch = new frmTeslaGui(this);
                tmrHide.Start();
                launch.Show();
            }
        }