예제 #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);
         }
     }
 }
예제 #2
0
파일: MarkManager.cs 프로젝트: komby/vixen
 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);
         }
     }
 }