Пример #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());
        }