private void buttonTapNewMarks_Click(object sender, EventArgs e)
 {
     using (MarkTapper tapper = new MarkTapper(_executionControl, _timingSource)) {
         if (tapper.ShowDialog() == DialogResult.OK)
         {
             foreach (TimeSpan time in tapper.Results)
             {
                 if (!_displayedCollection.Marks.Contains(time))
                 {
                     _displayedCollection.Marks.Add(time);
                 }
             }
             PopulateMarkListFromMarkCollection(_displayedCollection);
             UpdateMarkCollectionInList(_displayedCollection);
         }
     }
 }
Exemple #2
0
 private void buttonTapNewMarks_Click(object sender, EventArgs e)
 {
     using (MarkTapper tapper = new MarkTapper(_executionControl, _timingSource)) {
         if (tapper.ShowDialog() == DialogResult.OK) {
             foreach (TimeSpan time in tapper.Results) {
                 if (!_displayedCollection.Marks.Contains(time))
                     _displayedCollection.Marks.Add(time);
             }
             PopulateMarkListFromMarkCollection(_displayedCollection);
             UpdateMarkCollectionInList(_displayedCollection);
         }
     }
 }