/// <summary> /// Wizard events /// </summary> /// <param name="WizardEventArgs"></param> public void WizardEvent(WizardEventArgs WizardEventArgs) { switch (WizardEventArgs.EventType) { case EventType.Init: mConversionProcess = (IActionsConversionProcess)WizardEventArgs.Wizard; break; case EventType.Active: Init(); break; } }
/// <summary> /// Wizard events /// </summary> /// <param name="WizardEventArgs"></param> public void WizardEvent(WizardEventArgs WizardEventArgs) { switch (WizardEventArgs.EventType) { case EventType.Init: mConversionProcess = (IActionsConversionProcess)WizardEventArgs.Wizard; ((WizardWindow)((WizardBase)mConversionProcess).mWizardWindow).ShowFinishButton(false); break; case EventType.Active: Init(WizardEventArgs); break; default: mConversionProcess = (IActionsConversionProcess)WizardEventArgs.Wizard; break; } }
public void WizardEvent(WizardEventArgs WizardEventArgs) { switch (WizardEventArgs.EventType) { case EventType.Init: mConversionProcess = (IActionsConversionProcess)WizardEventArgs.Wizard; ((WizardWindow)((WizardBase)mConversionProcess).mWizardWindow).ShowFinishButton(false); SetGridsView(); break; case EventType.LeavingForNextPage: if (ListOfBusinessFlow.Where(x => x.IsSelected && x.TotalProcessingActionsCount > 0).ToList().Count == 0) { Reporter.ToUser(eUserMsgKey.StaticWarnMessage, string.Format("Please select {0} which contains legacy Actions to convert.", GingerDicser.GetTermResValue(eTermResKey.BusinessFlows))); WizardEventArgs.CancelEvent = true; return; } else { PrepareBFsForConversion(); } break; } }