Пример #1
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     AniHelper.ClearMethod(this);
     iStaffId = null;
     dgvStaff.AutoGenerateColumns = false;
     dgvStaff.DataSource          = db.Staffs.ToList();
     txtName.Focus();
 }
Пример #2
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     iCustomerId = null;
     AniHelper.ClearMethod(this);
     AniHelper.FillCombo(cmbSlot, db.Slots.Where(x => x.OccupaidStatus == false).ToList().Cast <object>().ToList());
     AniHelper.FillCombo(cmbStaff, db.Staffs.Where(x => x.Name != "Admin").ToList().Cast <object>().ToList());
     btnInOrOut.Visible = false;
     txtPanNo.Focus();
 }
Пример #3
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     AniHelper.ClearMethod(this);
     slots                     = new List <Slot>();
     oldSlots                  = new List <Slot>();
     dgSlot.DataSource         = null;
     dgBox.AutoGenerateColumns = false;
     dgBox.DataSource          = db.Boxes.ToList();
     iBoxId                    = null;
     txtName.Enabled           = true;
     txtName.Focus();
 }