/// <summary> /// Execute Show MessageBox /// </summary> /// <param name="msg"></param> private void ShowMessageBox(string msg) { SyncExecutor syncExecutor = new SyncExecutor(); if (ShowMessageBoxCallback != null) { syncExecutor.ExecuteSync(ControlToInvoke, ShowMessageBoxCallback, msg); } }
/// <summary> /// Execute open subform /// </summary> private void OpenSubform(string subformName, string parenttaskId, string formName, string taskId, string taskDescription) { SyncExecutor syncExecutor = new SyncExecutor(); TaskCallbacks callbacks = getTaskCallbacks(parenttaskId); if (callbacks != null && callbacks.OpenSubformCallback != null) { syncExecutor.ExecuteInUI(ControlToInvoke, callbacks.OpenSubformCallback, subformName, formName, taskId, taskDescription); } }
/// <summary> /// Execute open Form /// </summary> /// <param name="msg"></param> private void OpenForm(string formName) { SyncExecutor syncExecutor = new SyncExecutor(); if (openFormCallback != null) { syncExecutor.ExecuteInUI(ControlToInvoke, openFormCallback, formName); } //openFormCallback.ExecuteAsync(formName); }
public String GetValue(string taskId, string controlName) { SyncExecutor syncExecutor = new SyncExecutor(); TaskCallbacks callbacks = getTaskCallbacks(taskId); object result = ""; if (callbacks != null && callbacks.GetValueCallback != null) { result = syncExecutor.ExecuteSync(ControlToInvoke, callbacks.GetValueCallback, controlName); } return(result.ToString()); }