Beispiel #1
0
        /// <summary>
        /// Loads a workflow and profile from the SQL Tracking Database, using the LoadFromStore winform.
        /// </summary>
        /// <param name="workflowType"></param>
        /// <param name="profile"></param>
        public void LoadWorkflowAndProfile(out Type workflowType, out TrackingProfile profile)
        {
            LoadFromStore loadFromStoreForm = new LoadFromStore();

            loadFromStoreForm.WorkflowProfiles = GetWorkflowAndProfiles();
            DialogResult result = loadFromStoreForm.ShowDialog();

            if (result == DialogResult.OK)
            {
                workflowType = loadFromStoreForm.SelectedWorkflow;
                if (workflowType != null)
                {
                    profile = GetWorkflowProfile(workflowType, loadFromStoreForm.SelectedProfileVersion, true);
                }
                else
                {
                    profile = null;
                }
            }
            else
            {
                workflowType = null;
                profile      = null;
                return;
            }
        }
 /// <summary>
 /// Loads a workflow and profile from the SQL Tracking Database, using the LoadFromStore winform.
 /// </summary>
 /// <param name="workflowType"></param>
 /// <param name="profile"></param>
 public void LoadWorkflowAndProfile(out Type workflowType, out TrackingProfile profile)
 {
     LoadFromStore loadFromStoreForm = new LoadFromStore();
     loadFromStoreForm.WorkflowProfiles = GetWorkflowAndProfiles();
     DialogResult result = loadFromStoreForm.ShowDialog();
     if (result == DialogResult.OK)
     {
         workflowType = loadFromStoreForm.SelectedWorkflow;
         if (workflowType != null)
         {
             profile = GetWorkflowProfile(workflowType, loadFromStoreForm.SelectedProfileVersion, true);
         }
         else
         {
             profile = null;
         }
     }
     else
     {
         workflowType = null;
         profile = null;
         return;
     }
 }