/// <summary>
        /// edit question page select standard using edit link. This link is above the
        /// standard lookup button
        /// <param name="standardDoc">example...Ohio English Language Arts 2003</param>
        /// <param name="standardName">example...LA.1.R.1: Reading / Phonemic Awareness, Word Recognition and Fluency</param>
        /// </summary>
        /// <remarks>requires the EditQuestionCreateNewItemPage to be initialized in this class</remarks>
        /// <returns>Workflows</returns>
        public CreateItemWorkflows EditQuestionCreateNewItemPageInputFormFields_SelectStandardUsingEditLink(string standardDoc, string standardName)
        {
            if (AssessWorkflows.EditQuestionCreateNewItemPage == null)
            {
                throw new Exception("The EditQuestionCreateNewItemPage is null, please initialize it before trying to use it in a workflow.");
            }
            EditQuestionCreateNewItemForm form = AssessWorkflows.EditQuestionCreateNewItemPage.Form;

            form.ItemPropertiesForm.SelectEditStandard();
            StandardControlsForm standardControls = new StandardControlsForm(PageNames.EditTestItem);

            standardControls.SelectStandard(standardDoc, standardName);
            return(this);
        }
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     StandardControlsForm          = new StandardControlsForm(PageNames.ItemCentral, ControlPrefix);
     ItemProperties                = new ItemPropertiesForm(PageNames.ItemCentral, ControlPrefix);
     ItemStatistics                = new ItemStatisticsForm(PageNames.ItemCentral, ControlPrefix);
     PassageProperties             = new PassagePropertiesForm(PageNames.ItemCentral, ControlPrefix);
     SearchPassagesButton          = new WebElementWrapper(BySearchPassagesButton);
     TextLink                      = new WebElementWrapper(ByTextLink);
     TextContainer                 = new WebElementWrapper(ByTextContainer);
     SearchText                    = new WebElementWrapper(BySearchText);
     StandardLink                  = new WebElementWrapper(ByStandardLink);
     StandardContainer             = new WebElementWrapper(ByStandardContainer);
     ItemPropertiesLink            = new WebElementWrapper(ByItemPropertiesLink);
     ItemPropertiesContainer       = new WebElementWrapper(ByItemPropertiesContainer);
     ItemStatisticsLink            = new WebElementWrapper(ByItemStatisticsLink);
     ItemStatisticsContainer       = new WebElementWrapper(ByItemStatisticsContainer);
     PassagePropertiesLink         = new WebElementWrapper(ByPassagePropertiesLink);
     PassagePropertiesContainer    = new WebElementWrapper(ByPassagePropertiesContainer);
     PassageReadingLevelsLink      = new WebElementWrapper(ByPassageReadingLevelsLink);
     PassageReadingLevelsContainer = new WebElementWrapper(ByPassageReadingLevelsContainer);
 }
        private void CreateAStandardLink()
        {
            _currentStandardLinkIndex++;
            string customControlPrefix = "ctl00_MainContent_ctl00_EditRubricStandardControl_rptRubricStandardHeader_" + UniqueId;

            //ctl00_MainContent_ctl00_EditRubricStandardControl_rptRubricStandardHeader_ctl00_rptRubricStandard_ctl00_RubricStandardPicker_btnStandards
            //ctl00_MainContent_ctl00_EditRubricStandardControl_rptRubricStandardHeader_ctl00_HeaderRubricStandardPicker_btnStandards
            if (GroupType == RubricGroupType.GroupOfThese)
            {
                customControlPrefix = customControlPrefix + "_HeaderRubricStandardPicker_btnStandards";
            }
            else
            {
                customControlPrefix = customControlPrefix + "_rptRubricStandard_" + GetStandardControlId() + "_RubricStandardPicker_btnStandards";
            }

            StandardControlsForm standardLink = new StandardControlsForm(PageNames.EditRubric, ControlPrefix, customControlPrefix);

            StandardLinkList.Add(standardLink);
            StandardPickerForm standardPicker = new StandardPickerForm(PageNames.EditRubric);

            StandardPickerList.Add(standardPicker);
        }
 /// <summary>
 /// set the standard document and ID
 /// </summary>
 /// <param name="standardDocument">the standard document</param>
 /// <param name="standardId">the standard ID</param>
 /// <returns>this StandardControlsForm</returns>
 public ItemCentralStandardPickerPage SelectStandard(string standardDocument, string standardId)
 {
     StandardControlsForm.SelectStandard(standardDocument, standardId);
     return(new ItemCentralStandardPickerPage(this.ItemCentralType));
 }
 /// <summary>
 /// select the edit standard link
 /// </summary>
 /// <returns>this StandardControlsForm</returns>
 public StandardControlsForm EditStandard()
 {
     return(StandardControlsForm.EditStandard());
 }
 /// <summary>
 /// select the standard lookup button
 /// </summary>
 /// <returns>StandardPickerForm</returns>
 public StandardPickerForm StandardLookup()
 {
     this.StandardPicker      = StandardControlsForm.StandardLookup_StandardForm();
     this.StandardPicker.Data = Data.StandardPickerData;
     return(this.StandardPicker);
 }