コード例 #1
0
        /// <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;
            }
        }
コード例 #2
0
        /// <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;
            }
        }
コード例 #3
0
        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;
            }
        }