private void UpdateDisplay(string strCapture) { CallFunction del = delegate() { ux_txtReceivedData.Text += strCapture + Environment.NewLine; //+ ConvertToNumeric(strCapture); ux_txtReceivedData.SelectionStart = ux_txtReceivedData.Text.Length; ux_txtReceivedData.ScrollToCaret(); }; //gui controls need to have their methods called within thier own threads if (ux_txtReceivedData.InvokeRequired) { ux_txtReceivedData.Invoke(del); } else { del.Invoke(); } }
public virtual void Execute() { CallFunction?.Invoke(); }
internal protected override void Stop() { CallFunction?.Invoke(); }