Exemplo n.º 1
0
 void __update_event_pane(Object __sender, UIupdateArgs __args)
 {
     rtbEvents.BeginInvoke(new Action(() =>
     {
         rtbEvents.Text.Insert(0, string.Format("{0} : {1}", __args.timestamp, __args.__message));
     }));
 }
Exemplo n.º 2
0
        void __update_error_pane(Object __sender, UIupdateArgs __args)
        {
            rtbErrors.BeginInvoke(new Action(() =>
            {
                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 ...
            }
        }