private void button1_Click(object sender, EventArgs e) { View.AddForm oAddForm = new View.AddForm(); oAddForm.ShowDialog(); RefreshData(); }
private void edit_button_Click(object sender, EventArgs e) { int?id = GetId(); if (id != null) { View.AddForm oAddForm = new View.AddForm(id); oAddForm.ShowDialog(); RefreshData(); } }