private void Btn_update_Click(object sender, EventArgs e)
        {
            string sNewPassword;

            if (us.Customer_password == txt_account_current_pass.Text && txt_account_current_pass.Text != "")
            {
                User_Class up = new User_Class(c_ID, txt_account_name.Text, txt_account_surname.Text, txt_account_cell.Text, txt_account_email.Text, txt_account_pass.Text);
            }
        }
 public frm_Customer_Dash()
 {
     InitializeComponent();
     tbc_Customer.TabPages.Remove(tbp_account);
     tbc_Customer.TabPages.Remove(tbp_view_oder);
     tbc_Customer.TabPages.Remove(tbp_hire_truck);
     tbc_Customer.Appearance = TabAppearance.FlatButtons;
     tbc_Customer.ItemSize   = new Size(0, 1);
     tbc_Customer.SizeMode   = TabSizeMode.Fixed;
     us = new User_Class();
 }
Beispiel #3
0
        private void Btn_login_Click_1(object sender, EventArgs e)
        {
            User_Class us = new User_Class(txt_customer_username.Text, txt_customer_pass.Text);

            if (us.GetCustomerLoginInfo())
            {
                frm_Customer_Dash cd = new frm_Customer_Dash();         //If GetCustomerLoginInfo = true. move to frm_Customer_Dash
                cd.Region = this.Region;
                cd.c_ID   = us.Customer_ID;
                cd.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("The username or password is incorect");
            }
        }