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