private void ThreadSetText(string text) { if (TxtLogDisplay.InvokeRequired) { SetTextCallback d = new SetTextCallback(ThreadSetText); Invoke(d, new object[] { text }); } else { TxtLogDisplay.AppendText(text); } }
private void BtnLogClear_Click(object sender, EventArgs e) { LitrojanUtils.AutoIncrementalSave(); logHost = ""; TxtLogDisplay.Clear(); }