Ejemplo n.º 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);
         }
     }
 }
Ejemplo n.º 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);
         }
     }
 }