Ejemplo n.º 1
0
        //splash timer for how long it should be open
        private void _SplashTimer_Tick(object sender, EventArgs e)
        {
            StartForm startForm = new StartForm();

            this.SplashTimer.Enabled = false;
            startForm.Show();
            Hide();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// this method setting time and hide splashscreen and show start form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SplashTimer_Tick(object sender, EventArgs e)
        {
            this.SplashTimer.Enabled = false;
            this.Hide();
            StartForm start = new StartForm();

            start.Show();
        }
Ejemplo n.º 3
0
        private void SplashForm_timer_Tick(object sender, EventArgs e)
        {
            SplashForm_timer.Enabled = false;
            StartForm startForm = new StartForm();

            startForm.Show();
            this.Hide();
        }
Ejemplo n.º 4
0
        /// <summary>
        /// SplashFormTimer_Tick Event Handler
        /// This displays the splash form for 3 seconds, then moves on to the start form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SplashFormTimer_Tick(object sender, EventArgs e)
        {
            //this is so that the timer only goes once, otherwise it will open a billion forms
            SplashFormTimer.Enabled = false;
            //this is where the start form opens
            StartForm startform = new StartForm();

            startform.Show();
            //this hides the splash screen
            this.Hide();
        }
Ejemplo n.º 5
0
        private void SplashTimer_Tick(object sender, EventArgs e)
        {
            Timer tim = sender as Timer;

            tim.Stop();
            StartForm startForm = new StartForm();

            isClosed = true;
            startForm.previousForm = this;
            startForm.Show();
            this.Hide();
        }
Ejemplo n.º 6
0
        private void SplashFormTimer_Tick(object sender, EventArgs e)
        {
            //opening start form when splash form timer is completed i.e after 3 seconds
            StartForm startForm = new StartForm();

            startForm.previousForm = this;


            this.SplashFormTimer.Enabled = false;
            startForm.Show();
            this.Hide();
        }
Ejemplo n.º 7
0
        private void SplashScreenTimer_Tick(object sender, EventArgs e)
        {
            // 1. Instantiate the next form
            StartForm startForm = new StartForm();

            // 2. pass a reference to the current form to the next form
            startForm.previousForm = this;

            this.SplashScreenTimer.Enabled = false;

            startForm.Show();

            this.Hide();
        }
Ejemplo n.º 8
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     // Instantiate the forms
     spalshForm      = new SpalshForm();
     orderForm       = new OrderForm();
     productInfoForm = new ProductInfoForm();
     selectForm      = new SelectForm();
     startForm       = new StartForm();
     aboutBox        = new AboutBox();
     product         = new Product();
     Application.Run(new SpalshForm());
 }
Ejemplo n.º 9
0
        private void _SplashFormTimer_Tick(object sender, EventArgs e)
        {
            // create a new instance of StartForm
            StartForm startForm = new StartForm();

            // disable the timer
            SplashFormTimer.Enabled = false;

            // Hide the splash form
            this.Hide();

            // Show the start form
            startForm.Show();
        }
Ejemplo n.º 10
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            splashForm      = new SplashForm();
            startForm       = new StartForm();
            orderForm       = new OrderForm();
            aboutForm       = new AboutForm();
            productInfoForm = new ProductInfoForm();
            selectForm      = new SelectForm();

            product = new Product();

            Application.Run(splashForm);
        }