Ejemplo n.º 1
0
 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));
     }));
 }
Ejemplo n.º 2
0
        public void __update_error_ui(Object __sender, UIupdateArgs __args)
        {
            __args.timestamp        = DateTime.Now.ToString();
            __args.__event_message += "\n";

            __error_ui_handler(this, __args);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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 ...
            }
        }