示例#1
0
        private void BtLoginE_Click(object sender, EventArgs e)
        {
            var       List = HelperEmployee.GetEmployeeList();
            Employees emp  = HelperEmployee.Item(List, tbUserE.Text, tbPwE.Text);

            if (emp != null)
            {
                FormEmployee f2 = new FormEmployee(emp.employeeID);
                f2.Show();
                this.Hide();
            }
            else
            {
                tbUserE.Clear(); tbPwE.Clear();
                lblWrongE.Visible = true;
            }
        }
示例#2
0
        private void FormCustomer_Load(object sender, EventArgs e)
        {
            lblName.Text       = name;
            lblSname.Text      = sname;
            lblPhone.Text      = phone;
            lblCredit.Text     = credit;
            lblAdress.Text     = adress;
            lblRegion.Text     = region;
            lblCity.Text       = city;
            lblCountry.Text    = country;
            lblPostalCode.Text = postalCode;

            cBoxCate.Items.Clear();
            cBoxSubCate.Items.Clear();
            cBoxProduct.Items.Clear();

            cBoxCate.ValueMember   = "cateID";
            cBoxCate.DisplayMember = "cateName";
            cBoxCate.DataSource    = HelperCate.GetCateList();

            cBoxEmployee.ValueMember   = "employeeID";
            cBoxEmployee.DisplayMember = "eLastName";
            cBoxEmployee.DataSource    = HelperEmployee.GetEmployeeList();
        }