/// <summary>
 /// Enable Writing Assistant Preference Settings.
 /// </summary>
 public void EnableWritingAssistantPreferenceSettings()
 {
     //Enable Writing Assistant Preference Settings
     logger.LogMethodEntry("WritingCoachPreferencesPage",
                           "EnableWritingAssistantPreferenceSettings", base.IsTakeScreenShotDuringEntryExit);
     try
     {
         //Declare the obeject for page
         GeneralPreferencesPage generalPreferencePage = new GeneralPreferencesPage();
         //Select the window
         generalPreferencePage.SelectThePreferenceWindowWithFrame();
         //  Enable Writing Assistant Preference Settings,send lock and checkbox id
         generalPreferencePage.EnableGeneralPreferenceSettings(
             WritingCoachPreferencesPageResource.
             WritingCoachPreferencesPage_WritingSpace_Lock_Id_Loctor,
             WritingCoachPreferencesPageResource.
             WritingCoachPreferencesPage_WritingSpace_Checkbox_Id_Loctor);
         //Save the preferences
         generalPreferencePage.SavePreferences();
     }
     catch (Exception e)
     {
         ExceptionHandler.HandleException(e);
     }
     logger.LogMethodExit("WritingCoachPreferencesPage",
                          "EnableWritingAssistantPreferenceSettings", base.IsTakeScreenShotDuringEntryExit);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Enable Grading Preference Settings.
 /// </summary>
 public void EnableGradingPreferenceSettings()
 {
     //Enable Grading Preference Settings
     logger.LogMethodEntry("GradingPreferencesPage",
                           "EnableGradingPreferenceSettings", base.IsTakeScreenShotDuringEntryExit);
     try
     {
         //Declare the obeject for page
         GeneralPreferencesPage generalPreferencePage = new GeneralPreferencesPage();
         //Select the window
         generalPreferencePage.SelectThePreferenceWindowWithFrame();
         //Enable  percentage or raw score at the course level Preference,send lock and checkbox id
         generalPreferencePage.EnableGeneralPreferenceSettings(
             GradingPreferencesPageResource.
             GradingPreferences_Page_Rawscore_Lock_Id_Locator,
             GradingPreferencesPageResource.
             GradingPreferences_Page_Rawscore_Checkbox_Id_Locator);
         //Use raw score grades for this course
         this.SelectRawScoreGrades();
         //Save the preferences
         generalPreferencePage.SavePreferences();
     }
     catch (Exception e)
     {
         ExceptionHandler.HandleException(e);
     }
     logger.LogMethodExit("GradingPreferencesPage",
                          "EnableGradingPreferenceSettings", base.IsTakeScreenShotDuringEntryExit);
 }