Exemplo n.º 1
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);
            }
        }
Exemplo n.º 2
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);
        }