예제 #1
0
        /// <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);
            }
        }
예제 #2
0
        /// <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);
            }
        }
예제 #3
0
        /// <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);
        }
예제 #4
0
        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());
        }