Example #1
0
        public void ClearLog()
        {
            UIUpdateArgs arg = new UIUpdateArgs();

            arg.uiType = UIUpdateTypes.LogClear;
            OnUIUpdate(this, arg);
        }
Example #2
0
        public void UIUpdateRefreshAll()
        {
            UIUpdateArgs arg = new UIUpdateArgs();

            arg.uiType = UIUpdateTypes.RefreshAll;
            OnUIUpdate(this, arg);
        }
Example #3
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)
     { }
 }