コード例 #1
0
        private void homeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BTA_Admin_Panel admin = new BTA_Admin_Panel();

            admin.Show();
            this.Hide();
        }
コード例 #2
0
        private void pictureBox_CLose_Click(object sender, EventArgs e)
        {
            string type = Form1.UserType;

            if (type == "Admin")
            {
                BTA_Admin_Panel admin = new BTA_Admin_Panel();
                admin.Show();
                this.Hide();
            }
            else
            {
                BTA_HomePage home = new BTA_HomePage();
                home.Show();
                this.Close();
            }
        }