private void Repair_AddEdit_Load(object sender, EventArgs e) { FillFields(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_repair.Id == 0); }
private void aeModel_Load(object sender, EventArgs e) { fillFields(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_model.Id == 0); }
private void License_AddEdit_Load(object sender, EventArgs e) { fillFields(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_license.Id == 0); }
private void aeDTP_Load(object sender, EventArgs e) { loadData(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_dtp.Id == 0); }
private void TempMove_AddEdit_Load(object sender, EventArgs e) { loadData(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_tempMove.Id == 0); }
private void Route_AddEdit_Load(object sender, EventArgs e) { FillFields(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.EditModeChanged += SetEnable; _workWithForm.SetEditMode(_route.Id == 0); }
private void FuelCardDriver_AddEdit_Load(object sender, EventArgs e) { LoadDictionary(); LoadData(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_fuelCardDriver.Id == 0); }
private void ShipPart_AddEdit_Load(object sender, EventArgs e) { loadDictionary(); loadData(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_shipPart.Id == 0); }
private void aeGrade_Load(object sender, EventArgs e) { loadTypeEngine(); fillFields(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_grade.Id == 0); }
private void Violation_AddEdit_Load(object sender, EventArgs e) { fillFields(); changeVisible(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_violation.Id == 0); }
private void Invoice_AddEdit_Load(object sender, EventArgs e) { loadData(); this.Text = "Перемещение №" + _invoice.Number; _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.EditModeChanged += EditModeChanged; _workWithForm.SetEditMode(_invoice.Id == 0); }
private void Driver_AddEdit_Load(object sender, EventArgs e) { loadData(); tbNumber.Visible = lbNumber.Visible = (_driver.OwnerID < 3); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.EditModeChanged += SetEnable; _workWithForm.SetEditMode(_driver.Id == 0); }
private void aeSsDTP_Load(object sender, EventArgs e) { loadDictionary(); cbMark.SelectedValue = _ssDTP.Id; cbServiceStantion.SelectedValue = _ssDTP.IDServiceStantion; _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_ssDTP.Id == 0); }
private void aeEmployees_Load(object sender, EventArgs e) { loadDictionaries(); loadData(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.EditModeChanged += EnableIfAccountWayBill; _workWithForm.SetEditMode(_employees.Id == 0); }
private void aeSuppyAddress_Load(object sender, EventArgs e) { loadRegions(); loadData(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.EditModeChanged += EnableIfAccountWayBill; _workWithForm.SetEditMode(_suppyAddress.Id == 0); }
private void Point_AddEdit_Load(object sender, EventArgs e) { Regions regions = Regions.getInstance(); lbRegion.Text = string.Concat("Регион: ", regions.getItem(_mypoint.RegionID)); tbName.Text = _mypoint.Name; _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.EditModeChanged += SetEnable; _workWithForm.SetEditMode(_mypoint.Id == 0); }
private void aeAccount_Load(object sender, EventArgs e) { LoadDictionary(); LoadData(); ChangeEnableBtnAddPolicy(); ChangeEnableComboBoxes(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_account.Id == 0); _workWithForm.SetEnableValue(btnSave, (!_account.Agreed)); }
private void aeUserAccess_Load(object sender, EventArgs e) { loadDictionary(); if (_userAccess.Driver != null) { cbDriver.SelectedValue = _userAccess.Driver.Id; } cbRole.SelectedValue = _userAccess.RoleId; _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_userAccess.Id == 0); }
private void FuelCard_AddEdit_Load(object sender, EventArgs e) { loadDictionaries(); LoadData(); loadDriverList(); EnterTextBox(); LeaveTextBox(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_fuelCard.Id == 0); }
private void Policy_AddEdit_Load(object sender, EventArgs e) { loadDictionary(); if (_policy.Id == 0) { changeDateEnd(); } else { fillFields(); } setVisible(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.SetEditMode(_policy.Id == 0); }
private void Car_AddEdit_Load(object sender, EventArgs e) { LoadData(); SetWindowHeader(); _workWithForm = new WorkWithForm(this.Controls, btnSave, btnClose); _workWithForm.EditModeChanged += SetNotEditableItems; _workWithForm.SetEditMode(_car.Id == 0 || !_car.IsGet); /*TODO: Столярова видит основную инфу */ if (User.GetDriver().UserRole == RolesList.AccountantWayBill) { foreach (TabPage tab in tabControl1.TabPages) { tab.Parent = null; } tabMileage.Parent = tabControl1; tabMain.Parent = tabControl1; } }