コード例 #1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     panel2.Width += 3;
     if (panel2.Width >= 700)
     {
         timer1.Stop();
         FormLogin fl = new FormLogin();
         fl.Show();
         this.Hide();
     }
 }
コード例 #2
0
        private void btnLogout_Click(object sender, EventArgs e)
        {
            var confirm = MessageBox.Show("Apakah anda yakin ingin logout?", "KONFIRMASI", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (confirm == DialogResult.Yes)
            {
                Auth.Logout();
                this.Hide();
                Form login = new FormLogin();
                login.Show();
            }
        }