Example #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);
            }
        }
Example #2
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());
        }