Exemplo n.º 1
0
        private void Btn_Logout_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmCustomerProfileEntry o1 = new frmCustomerProfileEntry();

            o1.Hide();
            frmCustomerRegistration o2 = new frmCustomerRegistration();

            o2.Hide();
            frmUpdateCustomerDetails o3 = new frmUpdateCustomerDetails();

            o3.Hide();
            frmUpdateProfile o4 = new frmUpdateProfile();

            o4.Hide();
            frmCustomerOrders o5 = new frmCustomerOrders();

            o5.Hide();
            frmLogin frm = new frmLogin();

            frm.txtUserName.Text     = "";
            frm.txtPassword.Text     = "";
            frm.ProgressBar1.Visible = false;
            frm.txtUserName.Focus();
            frm.Show();
        }
        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.Hide();
            frmCustomerRegistration frm = new frmCustomerRegistration();

            frm.txtUsername.Text      = "";
            frm.txtPassword.Text      = "";
            frm.txtName.Text          = "";
            frm.txtContact_no.Text    = "";
            frm.txtEmail_Address.Text = "";
            frm.txtUsername.Focus();
            frm.Show();
        }