Пример #1
0
        private void EnableRandomHyperlink_Click(object sender, System.EventArgs e)
        {
            PageOptionData updatedPageOptions = new PageOptionData();

            PageOptionData.PageOptionsRow pageOption = updatedPageOptions.PageOptions.NewPageOptionsRow();
            pageOption.SurveyId           = SurveyId;
            pageOption.PageNumber         = PageNumber;
            pageOption.RandomizeQuestions = !_enableRandomize;
            pageOption.EnableSubmitButton = _enableSubmit;
            updatedPageOptions.PageOptions.Rows.Add(pageOption);
            new Survey().UpdateSurveyPageOptions(updatedPageOptions);

            // Reloads the builder
            UINavigator.NavigateToSurveyBuilder(SurveyId, ((PageBase)Page).MenuIndex);
        }
 /// <summary>
 /// Update the options that were setup for the page
 /// </summary>
 public void UpdateSurveyPageOptions(PageOptionData updatedPageOptions)
 {
     SurveyFactory.Create().UpdateSurveyPageOptions(updatedPageOptions);
 }