/// <summary>
        /// Wizard events
        /// </summary>
        /// <param name="WizardEventArgs"></param>
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                mWizard = (ActionsConversionWizard)WizardEventArgs.Wizard;
                break;

            case EventType.Active:
                Init(WizardEventArgs);
                break;
            }
        }
示例#2
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                wiz = (ImportCDLWizard)WizardEventArgs.Wizard;
                break;

            case EventType.Active:

                break;
            }
        }
示例#3
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                mWizard = (NewSolutionWizard)WizardEventArgs.Wizard;
                break;

            case EventType.Active:
                UpdateSummary();
                break;
            }
        }
示例#4
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;
            }
        }
示例#5
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                mWizard = ((AddAgentWizard)WizardEventArgs.Wizard);
                break;

            case EventType.Active:
                AgentDriverConfigPage p = new AgentDriverConfigPage(mWizard.Agent);
                xDriverConfigFrame.SetContent(p);
                break;
            }
        }
示例#6
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:


                break;

            case EventType.Active:

                break;
            }
        }
示例#7
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                mWizard = (ActionsConversionWizard)WizardEventArgs.Wizard;
                SetGridsView();
                break;

            case EventType.LeavingForNextPage:
                PrepareBFsForConversion();
                break;
            }
        }
示例#8
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                mWizard      = (AddPOMWizard)WizardEventArgs.Wizard;
                mWinExplorer = mWizard.WinExplorer;
                break;

            case EventType.Active:
                ShowPOMInfo();
                break;
            }
        }
        private void MoveToPreviousPage(WizardEventArgs args)
        {
            if (!CanMoveToPreviousPage(args))
            {
                return;
            }

            int pageIndex = _wizard.IndexOfCurrentPage();

            _wizard.SelectWizardPage(_wizard.ReadIndexOfPreviousPage());
            _wizard.NextButtonEnabledState = true;
            _wizard.WizardPages[pageIndex].FirePageShowEvent();
            _wizard.FirePageChanged(pageIndex);
        }
示例#10
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            mWizard = (AddAgentWizard)WizardEventArgs.Wizard;
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                xAgentNameTextBox.BindControl(mWizard.Agent, nameof(Agent.Name));
                xAgentNameTextBox.AddValidationRule(new AgentNameValidationRule());
                xAgentNameTextBox.Focus();

                xAgentDescriptionTextBox.BindControl(mWizard.Agent, nameof(Agent.Notes));
                xAgentTagsViewer.Init(mWizard.Agent.Tags);

                //Removing ASCF from platform combobox
                List <dynamic> platformesToExclude = new List <dynamic>();
                platformesToExclude.Add(GingerCoreNET.SolutionRepositoryLib.RepositoryObjectsLib.PlatformsLib.ePlatformType.ASCF);
                //GingerCore.General.FillComboFromEnumObj(xPlatformTypeComboBox, mWizard.Agent.Platform, excludeList:platformesToExclude);//All
                //Only platforms used in Solution (having Target Application for)
                List <object> onlySolutionPlatforms = WorkSpace.Instance.Solution.ApplicationPlatforms.Select(x => x.Platform).Distinct().ToList().Cast <object>().ToList();
                GingerCore.General.FillComboFromEnumObj(xPlatformTypeComboBox, mWizard.Agent.Platform, values: onlySolutionPlatforms, excludeList: platformesToExclude);

                xPlatformTypeComboBox.SelectionChanged += xPlatformTypeComboBox_SelectionChanged;
                ////set Web as default
                //foreach(object platform in xPlatformTypeComboBox.Items)
                //{
                //    if(platform.ToString() == GingerCoreNET.SolutionRepositoryLib.RepositoryObjectsLib.PlatformsLib.ePlatformType.Web.ToString())
                //    {
                //        xPlatformTypeComboBox.SelectedItem = platform;
                //        break;
                //    }
                //}
                xPlatformTypeComboBox.SelectedIndex = 0;

                xDriverTypeComboBox.BindControl(mWizard.Agent.AgentOperations, nameof(AgentOperations.DriverInfo));
                xDriverTypeComboBox.SelectionChanged += xDriverTypeComboBox_SelectionChanged;
                if (xDriverTypeComboBox.Items.Count > 0)
                {
                    xDriverTypeComboBox.SelectedItem = xDriverTypeComboBox.Items[0];
                }


                xDriverTypeComboBox.AddValidationRule(eValidationRule.CannotBeEmpty);

                xDriverTypeComboBox.Visibility = Visibility.Visible;



                break;
            }
        }
示例#11
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            mWizard = (AddMapToALMWizard)WizardEventArgs.Wizard;
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                xMapTestStepsGrid.isSourceEqualTargetDragAndDrop = true;
                break;

            case EventType.Active:
                SetInitialGridsData();
                break;
            }
        }
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            if (WizardEventArgs.EventType == EventType.Init)
            {
                mAddModelOptionalValuesWizard = (AddModelOptionalValuesWizard)WizardEventArgs.Wizard;
                xPathTextBox.BindControl(this, nameof(FilePath));
                xPathTextBox.AddValidationRule(new EmptyValidationRule());

                xSheetNameComboBox.BindControl(this, nameof(SheetName));
                xSheetNameComboBox.AddValidationRule(new EmptyValidationRule());
                xPathTextBox.Focus();
            }
            else if (WizardEventArgs.EventType == EventType.LeavingForNextPage)
            {
                if (xSourceTypeComboBox.SelectedValue.ToString() == eSourceType.Excel.ToString())
                {
                    LoadFile();
                    mAddModelOptionalValuesWizard.SourceType = eSourceType.Excel;
                }
                else if (xSourceTypeComboBox.SelectedValue.ToString() == eSourceType.XML.ToString())
                {
                    mAddModelOptionalValuesWizard.SourceType = eSourceType.XML;
                }
                else if (xSourceTypeComboBox.SelectedValue.ToString() == eSourceType.Json.ToString())
                {
                    mAddModelOptionalValuesWizard.SourceType = eSourceType.Json;
                }
                else if (xSourceTypeComboBox.SelectedValue.ToString() == eSourceType.DB.ToString())
                {
                    LoadFile();
                    mAddModelOptionalValuesWizard.SourceType = eSourceType.DB;
                }
            }
            else if (WizardEventArgs.EventType == EventType.Cancel)
            {
                if (mAddModelOptionalValuesWizard.ImportOptionalValues.ParameterType == ImportOptionalValuesForParameters.eParameterType.Local)
                {
                    if (mAddModelOptionalValuesWizard.mAAMB is ApplicationAPIModel)
                    {
                        ((ApplicationAPIModel)mAddModelOptionalValuesWizard.mAAMB).OptionalValuesTemplates.Clear(); //XML & JSON
                    }
                    mAddModelOptionalValuesWizard.ParameterValues.Clear();                                          //Excel & DB
                }
                else if (mAddModelOptionalValuesWizard.ImportOptionalValues.ParameterType == ImportOptionalValuesForParameters.eParameterType.Global)
                {
                    mAddModelOptionalValuesWizard.ParameterValues.Clear();//Excel & DB
                }
            }
        }
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                mAutoRunWizard = (AutoRunWizard)WizardEventArgs.Wizard;

                BindingHandler.ObjFieldBinding(xConfigurationNameTextBox, System.Windows.Controls.TextBox.TextProperty, mAutoRunWizard.AutoRunConfiguration, nameof(RunSetAutoRunConfiguration.ConfigName));
                xConfigurationPathTextbox.Init(mAutoRunWizard.mContext, mAutoRunWizard.AutoRunConfiguration, nameof(RunSetAutoRunConfiguration.ConfigFileFolderPath), isVENeeded: false, isBrowseNeeded: true, browserType: Actions.UCValueExpression.eBrowserType.Folder);
                xParametersRadioButton.IsChecked = true;
                mAutoRunWizard.AutoRunConfiguration.AutoRunEexecutorType = eAutoRunEexecutorType.Run;
                BindingHandler.ObjFieldBinding(xCLIContentTextBox, TextBox.TextProperty, mAutoRunWizard.AutoRunConfiguration, nameof(mAutoRunWizard.AutoRunConfiguration.CLIContent), BindingMode: System.Windows.Data.BindingMode.TwoWay);
                mAutoRunWizard.AutoRunConfiguration.CLIContent = mAutoRunWizard.AutoRunConfiguration.GetCLIContent();
                mTempCLIContent = mAutoRunWizard.AutoRunConfiguration.CLIContent;
                break;

            case EventType.Active:
                if (mAutoRunWizard.AutoRunConfiguration.AutoRunEexecutorType != eAutoRunEexecutorType.Run)
                {
                    xCLIContentTextBox.AddValidationRule(new ValidateJsonFormat());
                }
                ResetCLIContent(mAutoRunWizard.ResetCLIContent);
                ShowHelp();
                ShowContent();
                break;

            case EventType.Prev:
                if (mTempCLIContent != mAutoRunWizard.AutoRunConfiguration.CLIContent && WizardEventArgs.Wizard.GetCurrentPage().Page == this && Reporter.ToUser(eUserMsgKey.RunsetAutoConfigBackWarn, "Configuartions customizations will be lost,do you want to go back?") == eUserMsgSelection.No)
                {
                    WizardEventArgs.CancelEvent = true;
                }
                else if (WizardEventArgs.Wizard.GetCurrentPage().Page == this && mTempCLIContent != mAutoRunWizard.AutoRunConfiguration.CLIContent)
                {
                    WizardEventArgs.CancelEvent = false;
                    ResetCLIContent(mAutoRunWizard.ResetCLIContent = true);
                    mTempCLIContent = mAutoRunWizard.AutoRunConfiguration.CLIContent;
                    ShowContent();
                }
                else
                {
                    WizardEventArgs.CancelEvent = false;
                }
                break;

            case EventType.LeavingForNextPage:
                mAutoRunWizard.ResetCLIContent = false;
                break;
            }
        }
 public void WizardEvent(WizardEventArgs WizardEventArgs)
 {
     //if (WizardEventArgs.EventType == EventType.Init)
     //{
     //    mWizard = (AddEnvironmentWizard)WizardEventArgs.Wizard;                
     //    mWizard.FinishEnabled = false;
     //    mWizard.NextEnabled = true;
     //    mWizard.PrevEnabled = false;
     //}
     //if (WizardEventArgs.EventType == EventType.Active)
     //{
     //    mWizard.NextEnabled = true;
     //    mWizard.PrevEnabled = false;
     //}
 }
        /// <summary>
        /// This method is default wizard action event
        /// </summary>
        /// <param name="WizardEventArgs"></param>
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            mWizardEventArgs = WizardEventArgs;
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                break;

            case EventType.Active:
                Path                 = ((ImportDataSourceFromExcelWizard)mWizardEventArgs.Wizard).Path;
                SheetName            = ((ImportDataSourceFromExcelWizard)mWizardEventArgs.Wizard).SheetName;
                HeadingRow           = ((ImportDataSourceFromExcelWizard)mWizardEventArgs.Wizard).HeadingRow;
                IsModelParamsFile    = ((ImportDataSourceFromExcelWizard)mWizardEventArgs.Wizard).IsModelParamsFile;
                IsImportEmptyColumns = ((ImportDataSourceFromExcelWizard)mWizardEventArgs.Wizard).IsImportEmptyColumns;

                impParams.ExcelFileName  = Path;
                impParams.ExcelSheetName = SheetName;
                DisplayData();
                break;

            case EventType.LeavingForNextPage:
                if (xSelectRowTextBox.Text != null && !(string.IsNullOrWhiteSpace(xSelectRowTextBox.Text)))
                {
                    impParams.ExcelWhereCondition = Convert.ToString(xSelectRowTextBox.Text);
                    DataTable dt = impParams.GetExceSheetlData(true);
                    if (dt != null)
                    {
                        xExcelDataGrid.ItemsSource         = dt.AsDataView();
                        xExcelDataGridDockPanel.Visibility = Visibility.Visible;
                    }
                    DataSet TableWithWhereCondition = new DataSet();
                    dt.TableName = SheetName;
                    TableWithWhereCondition.Tables.Add(dt);
                    ExcelImportData = TableWithWhereCondition;
                    ((ImportDataSourceFromExcelWizard)mWizardEventArgs.Wizard).ExcelImportData = ExcelImportData;
                }
                else
                {
                    ((ImportDataSourceFromExcelWizard)mWizardEventArgs.Wizard).ExcelImportData = ExcelImportData;
                }


                break;

            default:
                break;
            }
        }
示例#16
0
 public void WizardEvent(WizardEventArgs WizardEventArgs)
 {
     if (WizardEventArgs.EventType == EventType.Init)
     {
         AddModelOptionalValuesWizard = ((AddModelOptionalValuesWizard)WizardEventArgs.Wizard);
         //AddModelOptionalValuesWizard.FinishEnabled = false;
         //AddModelOptionalValuesWizard.NextEnabled = false;
     }
     else if (WizardEventArgs.EventType == EventType.LeavingForNextPage)
     {
         if (xSourceTypeComboBox.SelectedValue.ToString() == eSourceType.Excel.ToString())
         {
             LoadFile();
             AddModelOptionalValuesWizard.SourceType = eSourceType.Excel;
         }
         else if (xSourceTypeComboBox.SelectedValue.ToString() == eSourceType.XML.ToString())
         {
             AddModelOptionalValuesWizard.SourceType = eSourceType.XML;
         }
         else if (xSourceTypeComboBox.SelectedValue.ToString() == eSourceType.Json.ToString())
         {
             AddModelOptionalValuesWizard.SourceType = eSourceType.Json;
         }
         else if (xSourceTypeComboBox.SelectedValue.ToString() == eSourceType.DB.ToString())
         {
             LoadFile();
             AddModelOptionalValuesWizard.SourceType = eSourceType.DB;
         }
     }
     else if (WizardEventArgs.EventType == EventType.Active)
     {
         //AddModelOptionalValuesWizard.NextEnabled = true;
         //AddModelOptionalValuesWizard.FinishEnabled = false;
         //AddModelOptionalValuesWizard.PrevEnabled = false;
     }
     else if (WizardEventArgs.EventType == EventType.Cancel)
     {
         if (importOptionalValues.ParameterType == ImportOptionalValuesForParameters.eParameterType.Local)
         {
             mAAMB.OptionalValuesTemplates.Clear();                         //XML & JSON
             AddModelOptionalValuesWizard.ParameterValuesByNameDic.Clear(); //Excel & DB
         }
         else if (importOptionalValues.ParameterType == ImportOptionalValuesForParameters.eParameterType.Global)
         {
             AddModelOptionalValuesWizard.ParameterValuesByNameDic.Clear();//Excel & DB
         }
     }
 }
示例#17
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                wiz = (ImportItemWizard)WizardEventArgs.Wizard;
                SetItemsListToImportGridView();
                wiz.ItemTypeListToImport = GetItemTypeListToImport();
                xItemTypesToImportGrid.DataSourceList = wiz.ItemTypeListToImport;
                break;

            case EventType.Active:
                ((WizardWindow)wiz.mWizardWindow).ShowFinishButton(false);

                UCEncryptionKey.mSolution = GlobalSolutionUtils.Instance.GetSolution();
                UCEncryptionKey.mSolution.SolutionOperations = new SolutionOperations(UCEncryptionKey.mSolution);
                if (!string.IsNullOrEmpty(wiz.EncryptionKey))
                {
                    UCEncryptionKey.EncryptionKeyPasswordBox.Password = wiz.EncryptionKey;
                    UCEncryptionKey.ValidateKey();
                }
                break;

            case EventType.LeavingForNextPage:
                if (string.IsNullOrEmpty(UCEncryptionKey.EncryptionKeyPasswordBox.Password))
                {
                    Reporter.ToUser(eUserMsgKey.StaticErrorMessage, "Please provide Solution Encryption Key.");
                    WizardEventArgs.CancelEvent = true;
                    return;
                }
                if (UCEncryptionKey.ValidateKey())
                {
                    wiz.EncryptionKey = UCEncryptionKey.EncryptionKeyPasswordBox.Password;
                    GlobalSolutionUtils.Instance.EncryptionKey = wiz.EncryptionKey;
                }
                else
                {
                    Reporter.ToUser(eUserMsgKey.StaticErrorMessage, "Loading Solution- Error: Encryption key validation failed.");
                    WizardEventArgs.CancelEvent = true;
                    return;
                }
                break;

            default:
                //Nothing to do
                break;
            }
        }
示例#18
0
        public void WizardEvent(WizardEventArgs WizardArgs)
        {
            switch (WizardArgs.EventType)
            {
            case EventType.Init:
                mWizard = (ImportGherkinFeatureWizard)WizardArgs.Wizard;
                break;

            case EventType.Validate:
                if (!File.Exists(FetaureFileName.FilePathTextBox.Text))
                {
                    // WizardArgs.AddError("File not found - " + FetaureFileName.FilePathTextBox.Text);
                }
                break;
            }
        }
示例#19
0
 private void ValidateXMLTemplatesInputs(WizardEventArgs WizardEventArgs)
 {
     if (AddAPIModelWizard.XTFList.Count == 0)
     {
         //WizardEventArgs.AddError("XML Templates grid cannot be empty");
         return;
     }
     foreach (TemplateFile XTF in AddAPIModelWizard.XTFList)
     {
         string error = string.Empty;
         if (!ValidateTemplateURL(ref error))
         {
             //  WizardEventArgs.AddError(error);
         }
     }
 }
示例#20
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                mPomWizard = (PomDeltaWizard)WizardEventArgs.Wizard;
                break;

            case EventType.Active:

                SetDeletedElementsGridView();
                DeletedDeltaElementInfos = new ObservableList <DeltaElementInfo>(mPomWizard.mPomDeltaUtils.DeltaViewElements.Where(x => x.DeltaStatus.Equals(eDeltaStatus.Deleted)));
                xDeletedElementsMappingGrid.DataSourceList = DeletedDeltaElementInfos;
                break;
            }
        }
示例#21
0
        /// <summary>
        /// This method is default wizard action event
        /// </summary>
        /// <param name="WizardEventArgs"></param>
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                break;

            case EventType.Active:
                mWizardEventArgs = WizardEventArgs;
                xLable.Content   = "Proceed for Data Import, Click Finish!";
                break;

            default:
                break;
            }
        }
示例#22
0
        private void MoveToNextPage(WizardEventArgs args)
        {
            if (!CanMoveToNextPage(args))
            {
                return;
            }

            _wizard.SelectWizardPage(args.NextPageIndex);
            _wizard.StoreIndexOfCurrentPage(args.CurrentPageIndex);
            _wizard.WizardPages[args.NextPageIndex].FirePageShowEvent();
            _wizard.FirePageChanged(args.NextPageIndex);
            if (NextPageIsLast(args))
            {
                _wizard.FireLastPage();
            }
        }
示例#23
0
 public void WizardEvent(WizardEventArgs WizardEventArgs)
 {
     //switch (WizardEventArgs.EventType)
     //{
     //    case EventType.Init:
     //        mWizard = (AddEditPOMWizard)WizardEventArgs.Wizard;
     //        mWinExplorer = mWizard.WinExplorer;
     //        ElementsGrid.DataSourceList = mWizard.POM.UIElements;
     //        break;
     //    case EventType.Active:
     //        mScreenshot = new ScreenShotViewPage(mWizard.POM.Name, mWizard.POM.ScreenShot);
     //        mScreenshot.MouseClickOnScreenshot += MouseClickOnScreenshot_EventHandler;
     //        MainFrame.Content = mScreenshot;
     //        break;
     //}
 }
 public void WizardEvent(WizardEventArgs WizardEventArgs)
 {
     switch (WizardEventArgs.EventType)
     {
     case EventType.Active:
         ImportGherkinFeatureWizard wiz = (ImportGherkinFeatureWizard)WizardEventArgs.Wizard;
         if (wiz.featureTargetFolder != null)
         {
             TargetFeatureFolderLabel.Content = ((DocumentsFolderTreeItem)wiz.featureTargetFolder).NodePath();
         }
         if (wiz.bizFlowTargetFolder != null)
         {
             TargetBFFolderLabel.Content = ((BusinessFlowsFolderTreeItem)wiz.bizFlowTargetFolder).NodePath();
         }
         break;
     }
 }
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            mWizard = (AddActivityWizard)WizardEventArgs.Wizard;
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                break;

            case EventType.Active:
                if (mLastActivity != mWizard.ActivityToAdd)
                {
                    mLastActivity  = mWizard.ActivityToAdd;
                    xFrame.Content = new ActivityDetailsPage(mWizard.ActivityToAdd, mWizard.Context, General.eRIPageViewMode.Standalone);
                }
                break;
            }
        }
示例#26
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                mWizard = (PomDeltaWizard)WizardEventArgs.Wizard;
                break;

            case EventType.Active:
                if (!mFirstLearnWasDone)
                {
                    LearnDelta();
                    mFirstLearnWasDone = true;
                }
                break;
            }
        }
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                mAutoRunWizard = (AutoRunWizard)WizardEventArgs.Wizard;
                BindingHandler.ObjFieldBinding(xConfigurationNameTextBox, System.Windows.Controls.TextBox.TextProperty, mAutoRunWizard.AutoRunConfiguration, nameof(RunSetAutoRunConfiguration.ConfigName));
                xConfigurationPathTextbox.Init(mAutoRunWizard.mContext, mAutoRunWizard.AutoRunConfiguration, nameof(RunSetAutoRunConfiguration.ConfigFileFolderPath), isVENeeded: false, isBrowseNeeded: true, browserType: Actions.UCValueExpression.eBrowserType.Folder);
                xConfigRadioButton.IsChecked = true;
                break;

            case EventType.Active:
                ShowHelp();
                ShowContent();
                break;
            }
        }
示例#28
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                mWizard = (ActionsConversionWizard)WizardEventArgs.Wizard;
                break;

            case EventType.Active:
                Init();
                break;

            case EventType.LeavingForNextPage:
                SetSelectedActionsForConversion();
                break;
            }
        }
示例#29
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            if (WizardEventArgs.EventType == EventType.Init)
            {
                AddAPIModelWizard = ((AddAPIModelWizard)WizardEventArgs.Wizard);

                FillTargetAppsComboBox();
                xTargetApplicationComboBox.Init(AddAPIModelWizard, nameof(AddAPIModelWizard.TargetApplicationKey));

                xTagsViewer.Init(AddAPIModelWizard.TagsKeys);
            }
            //else if (WizardEventArgs.EventType == EventType.Active)
            //{
            //    AddAPIModelWizard.FinishEnabled = true;
            //    AddAPIModelWizard.NextEnabled = false;
            //}
        }
 public void WizardEvent(WizardEventArgs WizardEventArgs)
 {
     switch (WizardEventArgs.EventType)
     {
     case EventType.Init:
         ImportGherkinFeatureWizard wiz = (ImportGherkinFeatureWizard)WizardEventArgs.Wizard;
         if (wiz.mContext == ImportGherkinFeatureFilePage.eImportGherkinFileContext.DocumentsFolder)
         {
             FolderLabel.Content = ((DocumentsFolderTreeItem)wiz.featureTargetFolder).NodePath();
         }
         else if (wiz.mContext == ImportGherkinFeatureFilePage.eImportGherkinFileContext.BusinessFlowFolder)
         {
             FolderLabel.Content = ((BusinessFlowsFolderTreeItem)wiz.bizFlowTargetFolder).NodePath();
         }
         break;
     }
 }
示例#31
0
        protected void schoolWizard_FinishButtonClick(object sender, WizardEventArgs e)
        {
            School _school = new School();
            _school.Name = txtFullName.Text;
            _school.Alias = txtAlias.Text;
            _school.Mascot = txtMascot.Text;
            _school.Address = txtAddress.Text;
            _school.City = txtCity.Text;
            _school.Zip = txtZip.Text;
            _school.State = comboState.SelectedValue;
            _school.Email = txtContactEmail.Text;
            _school.Phone = txtContactPhone.Text;
            _school.ButtonColor = ColorTranslator.ToHtml(rdColorPrimary.SelectedColor) == string.Empty ? "NULL" : ColorTranslator.ToHtml(rdColorPrimary.SelectedColor);
            _school.BannerColor = ColorTranslator.ToHtml(rdColorBackground.SelectedColor) == string.Empty ? "NULL" : ColorTranslator.ToHtml(rdColorBackground.SelectedColor);

            if (isUpdate)
            {
                _school.SchoolID = Convert.ToInt64(Request.QueryString["schoolid"]);
                if (UpdateSchool(_school))
                    Response.Redirect("Modules");
                else
                    CreateErrorMsg("There was an issue saving your data.  Please try again.");
            }
            else
            {
                if (CreateSchool(_school))
                    Response.Redirect("Modules");
                else
                    CreateErrorMsg("There was an issue saving your data.  Please try again.");
            }
        }