private void Mn_OnMinerEvent(object sender, minerEventArgs e) { Invoke(new Action(() => { lstLog.Items.Add(e.Line); lstLog.SelectedIndex = lstLog.Items.Count - 1; })); }
public void MinerEvent(string Line) { // Make sure someone is listening to event if (OnMinerEvent == null) { return; } minerEventArgs args = new minerEventArgs(Line); OnMinerEvent(this, args); }
private void InOnMinerEvent(object sender, minerEventArgs e) { MinerEvent(e.Line); }