Exemplo n.º 1
0
 /// <summary>
 /// Updates Flags
 /// </summary>
 /// <param name="wizardActionState"></param>
 private void UpdateStatus(WizardActionState wizardActionState)
 {
     // If Publish report action is performed successfully
     if (CurrentAction.ActionName == WizardActionName.PublishReport &&
         wizardActionState == WizardActionState.Success)
     {
         // then sets IsReportPublished flag as true
         IsReportPublished      = true;
         IsLinksReportPublished = true;
     }
     // else if Data Source is parsed then update the Counter for Total number of workitems
     else if (CurrentAction.ActionName == WizardActionName.ParseDataSource)
     {
         TotalWorkItems = m_wizardInfo.Migrator.SourceWorkItems.Count;
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Updates Migration Part's State
        /// </summary>
        private void UpdateWizardActionState()
        {
            WizardActionState state = WizardActionState.Success;

            foreach (WizardAction action in WizardActions)
            {
                if (action.State == WizardActionState.Failed || action.State == WizardActionState.Stopped)
                {
                    state = WizardActionState.Failed;
                    break;
                }
                if (action.State == WizardActionState.Warning)
                {
                    state = WizardActionState.Warning;
                }
            }
            MigrationState = state;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes the m_wizardInfo and BackgroundWorker.
 /// Also sets the Current State of WizardAction as pending
 /// </summary>
 /// <param name="wizardInfo"></param>
 public WizardAction(WizardInfo wizardInfo)
 {
     m_wizardInfo = wizardInfo;
     m_state      = WizardActionState.Pending;
     InitializeBackgroundWorker();
 }