Esempio 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();
        }
Esempio n. 2
0
        private void BtnProfileEntry_Click(object sender, EventArgs e)
        {
            frmCustomerProfileEntry frm = new frmCustomerProfileEntry();

            frm.txtCustomerID.Text = lblUser.Text;
            frm.Show();
            frm.FormClosing += Frm_FormProfileEntryClosing;
        }