예제 #1
0
 private void UpdateUntilDateTimePicker(DateTime d)
 {
     if (UntilDatetimepicker.InvokeRequired)
     {
         SetDateTimeCallback dt = new SetDateTimeCallback(UpdateUntilDateTimePicker);
         this.Invoke(dt, d);
     }
     else
     {
         UntilDatetimepicker.Value = d;
     }
 }
예제 #2
0
        public override void onMetronomeEvent(object sender, metronomeEventArgs e)
        {
            DateTime currDateTime = e.currentTime;

            if (listBox.InvokeRequired)
            {
                setDateTimeCallback = SetText;
                listBox.Invoke(setDateTimeCallback, currDateTime);
            }
            else
            {
                SetText(currDateTime);
            }
        }
예제 #3
0
        public override void onMetronomeEvent(object sender, metronomeEventArgs e)
        {
            DateTime currDateTime = e.currentTime;

            if (listBox.InvokeRequired)
            {
                setDateTimeCallback = SetText;
                listBox.Invoke(setDateTimeCallback, currDateTime);
            }
            else
            {
                SetText(currDateTime);
            }
        }