public PurchasesForm(int accessoriesId) { InitializeComponent(); PurchasesModel.id = accessoriesId; formLabel.Text += " " + accessoriesId; PurchasesModel.reset(); }
private void deleteButton_Click(object sender, EventArgs e) { if (isIncorrectModel()) { MessageBox.Show("Выберите строку"); } else { deleteRow(); updateView(); PurchasesModel.reset(); } }
private void saveButton_Click(object sender, EventArgs e) { if (isIncorrectModel()) { MessageBox.Show("Выберите строку и введите новые значения"); } else { updateRow(); updateView(); PurchasesModel.reset(); } }
public PurchasesWithEditingForm() { InitializeComponent(); PurchasesModel.reset(); clearInputs(); }
private void PurchasesForm_Click(object sender, EventArgs e) { clearInputs(); PurchasesModel.reset(); }