Beispiel #1
0
        private void btnLogOut_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrontPage fm = new FrontPage();

            this.Hide();
            fm.Show();
        }
        private void guna2Button1_Click(object sender, EventArgs e)
        {
            FrontPage fs = new FrontPage();

            fs.Show();
            this.Hide();
        }
Beispiel #3
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
            }
        }