Пример #1
0
        private void cancelButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            StartForm Product = new StartForm();

            Product.Show();
        }
        private void SelectAnotherButton_Click(object sender, EventArgs e)
        {
            StartForm startForm = new StartForm();

            startForm.ShowDialog();
            this.Hide();
        }
Пример #3
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     startForm = new StartForm();
     mainForm  = new BMICalculatorForm();
     Application.Run(startForm);
 }
Пример #4
0
        private void LoadingTimer_Tick(object sender, EventArgs e)
        {
            LoadingTimer.Enabled = false;
            StartForm startForm = new StartForm();

            startForm.Show();
            this.Hide();
        }
        private void SplashTimer_Tick(object sender, EventArgs e)
        {
            StartForm startForm = new StartForm();

            this.SplashTimer.Enabled = false;
            startForm.Show();
            this.Hide();
        }
Пример #6
0
        private void splashFormTimer_Tick(object sender, EventArgs e)
        {
            //1. intantiate
            StartForm selectionForm = new StartForm();

            this.splashFormTimer.Enabled = false;
            selectionForm.Show();
            this.Hide();
        }
Пример #7
0
        // go to next form
        private void timerSplash_Tick(object sender, EventArgs e)
        {
            timerSplash.Enabled = false;

            StartForm startForm = new StartForm();

            this.Hide();
            startForm.Show();
        }
Пример #8
0
        /// <summary>
        /// this method closes the splash form and opens the starform once the timer is up
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SplashFormTimer_Tick(object sender, EventArgs e)
        {
            StartForm startForm = new StartForm();

            startForm.previousForm = this;

            //pass a referance to the current form to the next form
            this.SplashFormTimer.Enabled = false;
            startForm.Show();
            this.Hide();
        }