예제 #1
0
 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);
         }
     }
 }
예제 #2
0
 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);
         }
     }
 }