public AddFormStudent(MainForm mainForm, Student student, string fileName, FlagAddOrUpdate flag) : this(mainForm) { this.student = student; this.fileName = fileName; this.flag = flag; InitializeFieldsAndDataGridsAddFormStudent(); SetOptionsForUpdateOrAdditingForm(flag); SetButtonsContactEnabledOrDisabled(); SetButtonsAdressEnabledOrDisabled(); AddButton.Enabled = false; }
public AddFormContacts(DataTable dataTableContact, CRUDStudent crudStudent, int currentRowContactIndex, FlagAddOrUpdate flag) : this() { SetDataSourceTypeContactComboBox(); _currentRowContactIndex = currentRowContactIndex; _dataTableContact = dataTableContact; _crudStudent = crudStudent; _flag = flag; SetAdditingOrUpdateForm(flag); SetOptionColorForStringMaskedTextBox(); }
private void SetAdditingOrUpdateForm(FlagAddOrUpdate flag) { if (flag == FlagAddOrUpdate.Addition) { AdditingSettingForm(); } else { UpdateSettingForm(); SetFieldsUpdateFormContact(); } }
private void SetSetAdditingOrUpdateForm(FlagAddOrUpdate flag) { if (flag == FlagAddOrUpdate.Addition) { AdditingSettingForm(); } else { UpdationgSettingForm(); SetFieldsUpdateFormAdress(); } }
public AdressForm(DataTable dataTableAdress, CRUDStudent crudStudent, int currentRowAdressIndex, FlagAddOrUpdate flag) : this() { SetDataSourceTypeAdressComboBox(); _dataTableAdress = dataTableAdress; _crudStudent = crudStudent; _currentRowAdressIndex = currentRowAdressIndex; _flag = flag; OkButton.Enabled = false; SetSetAdditingOrUpdateForm(flag); }
private void SetOptionsForUpdateOrAdditingForm(FlagAddOrUpdate flag) { Text = flag == FlagAddOrUpdate.Addition ? Resources.AddMessageStudent : Resources.UpdateMessageStudent; }
public AddFormStudent() { InitializeComponent(); InitialiZeColorFields(); flag = FlagAddOrUpdate.Addition; }