Beispiel #1
0
        // Delogare
        private void button3_Click(object sender, EventArgs e)
        {
            Loginsys logoutWindow = new Loginsys();

            this.Close();
            logoutWindow.Show();
            logoutWindow.TopMost = true;
            logoutWindow.Activate();
        }
Beispiel #2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            metroProgressBar1.Increment(3);

            if (metroProgressBar1.Value == metroProgressBar1.Maximum)
            {
                Loginsys child = new Loginsys();

                timer1.Stop();
                this.Hide();
                child.Show();
                child.TopMost = true;
                child.Activate();
            }
        }