Ejemplo n.º 1
0
        public void DebugLog(string log)
        {
            LogArgs arg = new LogArgs();

            arg.strLog = log;
            arg.uiType = UIUpdateTypes.LogAppending;
            OnUIUpdate(this, arg);
        }
Ejemplo n.º 2
0
 void CallBack_UIUpdate(object sender, UIUpdateArgs e)
 {
     try
     {
         if (e.uiType == UIUpdateTypes.LogAppending)
         {
             LogArgs e_log = e as LogArgs;
             Invoke(new dlgWriteLog(WriteLog)
                    , new object[] { e_log.strLog });
         }
         else if (e.uiType == UIUpdateTypes.LogClear)
         {
             Invoke(new dlgClearLog(ClearLog));
         }
         else if (e.uiType == UIUpdateTypes.RefreshAll)
         {
             Invoke(new dlgRefreshAll(UIUpdateRefreshAll));
         }
     }
     catch (Exception)
     { }
 }