コード例 #1
0
 public Grid GetDetailsGrid(ManageQuestionsUserControl manageInstance)
 {
     this.manageInstance = manageInstance;
     ClearGrids();
     extendedDetailsGrid = this.GetExtendedDetailsGrid();
     SetContent();
     SetGroupNames();
     SetHandlers();
     SetLayout();
     SetColumsRows();
     AddUIElementsToBaseGrid();
     SetRowsAllDetailsGrid();
     AddGridsToAllDetailsGrid();
     return allDetailsGrid;
 }
コード例 #2
0
 public static void BackupAllCourseFiles(String folder, ManageQuestionsUserControl manageInstance)
 {
     String fullFolderPath = System.IO.Path.Combine(folder, Constants.coursesPath);
     if (!Directory.Exists(fullFolderPath))
     {
         Directory.CreateDirectory(fullFolderPath);
     }       
     String courseFile = System.IO.Path.Combine(folder, Constants.MathPath);
     WriteCourseFile(courseFile, manageInstance.UpdateCourseList(Constants.MathCourse));
     courseFile = System.IO.Path.Combine(folder, Constants.LanguagePath);
     WriteCourseFile(courseFile, manageInstance.UpdateCourseList(Constants.LanguageCourse));
     courseFile = System.IO.Path.Combine(folder, Constants.KnowledgePath);
     WriteCourseFile(courseFile, manageInstance.UpdateCourseList(Constants.KnowledgeCourse));
 }