private void exJobEdit_Click(object sender, EventArgs e) { using (ExJobWindow window = new ExJobWindow(ExJobWindow.Operation.Edit, ExJobs.GetSelectedRow())) { var result = window.ShowDialog(); if (result == DialogResult.OK) { string[] editedValues = window.Values; ExJobs.EditSelectedRow(editedValues); } } }
private void exJobAdd_Click(object sender, EventArgs e) { using (ExJobWindow window = new ExJobWindow(ExJobWindow.Operation.Add)) { var result = window.ShowDialog(); if (result == DialogResult.OK) { string[] row = window.Values; ExJobs.Add(row); } } }