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) { } }
public void ClearLog() { UIUpdateArgs arg = new UIUpdateArgs(); arg.uiType = UIUpdateTypes.LogClear; OnUIUpdate(this, arg); }
public void UIUpdateEmployGeneral() { UIUpdateArgs arg = new UIUpdateArgs(); arg.uiType = UIUpdateTypes.EmployGeneral; OnUIUpdate(this, arg); }
public void UIUpdateRefreshGeneral() { UIUpdateArgs arg = new UIUpdateArgs(); arg.uiType = UIUpdateTypes.RefreshGeneral; OnUIUpdate(this, arg); }