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