void __update_event_pane(Object __sender, UIupdateArgs __args) { rtbEvents.BeginInvoke(new Action(() => { rtbEvents.Text = rtbEvents.Text.Insert(0, string.Format("{0} : {1}", __args.timestamp, __args.__event_message)); })); }
public void __update_error_ui(Object __sender, UIupdateArgs __args) { __args.timestamp = DateTime.Now.ToString(); __args.__event_message += "\n"; __error_ui_handler(this, __args); }
public void __show_common_event(string __message) { UIupdateArgs __args = new UIupdateArgs(); __args.timestamp = DateTime.Now.ToString(); __args.__event_message = __message + "\n"; __event_ui_handler(this, __args); }
void __update_error_pane(Object __sender, UIupdateArgs __args) { rtbErrors.BeginInvoke(new Action(() => { rtbErrors.Text = rtbErrors.Text.Insert(0, string.Format("{0} : {1}", __args.timestamp, __args.__event_message)); })); __log_len++; if (__log_len > __max_log_len) { // delete the first line of the log ... } }