Exemple #1
0
        private void RefreshTableDisplay(string taskId, string UIDesctiption)
        {
            TaskCallbacks callbacks = getTaskCallbacks(taskId);

            if (callbacks != null && callbacks.RefreshDataCallback != null)
            {
                callbacks.RefreshTableDataCallback.ExecuteAsync(UIDesctiption);
            }
        }
Exemple #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);
            }
        }
Exemple #3
0
        TaskCallbacks getTaskCallbacks(string taskId)
        {
            TaskCallbacks result;

            if (!taskCallbackDictionary.TryGetValue(taskId, out result))
            {
                taskCallbackDictionary[taskId] = result = new TaskCallbacks();
            }
            return(result);
        }
Exemple #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());
        }