private void guna2Button1_Click(object sender, EventArgs e) { FrontPage fs = new FrontPage(); fs.Show(); this.Hide(); }
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 } }