private void DelegateInvokeLoad(string fileName) { delUIUpdate delUIUpdate = new delUIUpdate(UiUpdateMethodLoad); textBox1.BeginInvoke(delUIUpdate, fileName); comboBox1.BeginInvoke(delUIUpdate, fileName); trackBar1.BeginInvoke(delUIUpdate, fileName); }
// Action every single beat public void OnTick() { delUIUpdate updateUI = new delUIUpdate(OnUpdateUIElement); this.labelCurrentBeat.BeginInvoke(updateUI); if (metronome.Beat == 4) audioTickHigh.Play(); else audioTickLow.Play(); ClearNotes(); HighlightNote(); }
private void DelegateInvoke(string miliseconds) { try { delUIUpdate delUIUpdate = new delUIUpdate(UiUpdateMethod); label5.BeginInvoke(delUIUpdate, miliseconds); } catch (Exception ex) { MessageBox.Show(ex.Message, "Unhandled Exception", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void GetThreadStarted() { delUIUpdate updateUI = new delUIUpdate(OnUpdateUIElement); this.labelCurrentBeat.BeginInvoke(updateUI); }