예제 #1
0
        private void guna2Button1_Click(object sender, EventArgs e)
        {
            FrontPage fs = new FrontPage();

            fs.Show();
            this.Hide();
        }
예제 #2
0
        private void deleteAdminbtn_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Are You Sure TO Delete Your Account ...? ", "Delete Admin Account", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                var del = client.Delete("admin/");
                this.Close();

                FrontPage fe = new FrontPage();
                fe.Show();
            }
            else if (dialogResult == DialogResult.No)
            {
                //do something else
            }
        }