private void Edit_Click(object sender, EventArgs e) { if (DataBaseGrid.SelectedRows.Count == 0) { MessageBox.Show("No selected row!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } AddForm addForm = new AddForm("Редагувати", EnumAction.Update, this); addForm.Show(this); }
private void btn_add_Click(object sender, EventArgs e) { var addForm = new AddForm(this); addForm.Show(); }
private void Add_button_Click(object sender, EventArgs e) { AddForm addForm = new AddForm("Створити", EnumAction.Add, this); addForm.Show(this); }