예제 #1
0
        public override void onMetronomeEvent(object sender, metronomeEventArgs e)
        {
            DateTime currDateTime = e.currentTime;

            if (listBox.InvokeRequired)
            {
                addToListbox a = new addToListbox(addIntoListbox);
                listBox.Invoke(a, currDateTime.ToString());
            }
            else
            {
                addIntoListbox(currDateTime.ToString());
            }
        }
예제 #2
0
 public override void onMetronomeEvent(object sender, metronomeEventArgs e)
 {
     DateTime currDateTime = e.currentTime;
     if (listBox.InvokeRequired)
     {
         addToListbox a = new addToListbox(addIntoListbox);
         listBox.Invoke(a, currDateTime.ToString());
     }
     else
     {
         addIntoListbox(currDateTime.ToString());
     }
 }