void __update_event_pane(Object __sender, UIupdateArgs __args)
 {
     rtbEvents.BeginInvoke(new Action(() =>
     {
         rtbEvents.Text.Insert(0, string.Format("{0} : {1}", __args.timestamp, __args.__message));
     }));
 }
Exemple #2
0
        public void __update_error_ui(string __message)
        {
            UIupdateArgs __args = new UIupdateArgs();

            __args.timestamp = DateTime.Now.ToString();
            __args.__message = __message + "\n";
            __error_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.__message));
            }));

            __log_len++;

            if (__log_len > __max_log_len)
            {
                // delete the first line of the log ...
            }
        }