Exemplo n.º 1
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));
         }
         else if (e.uiType == UIUpdateTypes.RefreshGeneral)
         {
             Invoke(new dlgRefreshAll(UIUpdateRefreshGeneral));
         }
         else if (e.uiType == UIUpdateTypes.EmployGeneral)
         {
             Invoke(new dlgRefreshAll(UIUpdateEmployGeneral));
         }
     }
     catch (Exception)
     { }
 }
Exemplo n.º 2
0
 public void ClearLog()
 {
     UIUpdateArgs arg = new UIUpdateArgs();
     arg.uiType = UIUpdateTypes.LogClear;
     OnUIUpdate(this, arg);
 }
Exemplo n.º 3
0
 public void UIUpdateEmployGeneral()
 {
     UIUpdateArgs arg = new UIUpdateArgs();
     arg.uiType = UIUpdateTypes.EmployGeneral;
     OnUIUpdate(this, arg);
 }
Exemplo n.º 4
0
 public void UIUpdateRefreshGeneral()
 {
     UIUpdateArgs arg = new UIUpdateArgs();
     arg.uiType = UIUpdateTypes.RefreshGeneral;
     OnUIUpdate(this, arg);
 }