private void buttonEdit_Click(object sender, EventArgs e) { Form FormSalariesEdit = new FormSalariesEdit(salRepo, empRepo, selectedRowDBindex()); FormSalariesEdit.ShowDialog(); salRepo.Save(); RefreshGui(); }
private void buttonAdd_Click(object sender, EventArgs e) { Form FormSalariesEdit = new FormSalariesEdit(empRepo); FormSalariesEdit.ShowDialog(); salRepo.Save(); RefreshGui(); }