Ejemplo n.º 1
0
 private void EditSplitsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Run != null)
     {
         TopMost = false;
         Run runClone = (Run)Run.Clone();
         runClone.OnSplitUpdate += (o, ev) => { Saved = false; };
         runClone.OnNameUpdate  += (o, ev) => { Saved = false; };
         EditSplitsForm editSplitsForm = new EditSplitsForm(runClone);
         if (editSplitsForm.ShowDialog() == DialogResult.OK)
         {
             Run.Clear();
             Run.AddRange(editSplitsForm.Run);
             Run.Name = editSplitsForm.Run.Name;
             RunView.UpdateComponent();
         }
         TopMost = true;
     }
 }
Ejemplo n.º 2
0
 private void EditSplitsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Run != null)
     {
         TopMost = false;
         Run runClone = (Run)Run.Clone();
         runClone.OnSplitUpdate += (o, ev) => { Saved = false; };
         runClone.OnNameUpdate += (o, ev) => { Saved = false; };
         EditSplitsForm editSplitsForm = new EditSplitsForm(runClone);
         if (editSplitsForm.ShowDialog() == DialogResult.OK)
         {
             Run.Clear();
             Run.AddRange(editSplitsForm.Run);
             Run.Name = editSplitsForm.Run.Name;
             RunView.UpdateComponent();
         }
         TopMost = true;
     }
 }