public Grid GetDetailsGrid(ManageQuestionsUserControl manageInstance) { this.manageInstance = manageInstance; ClearGrids(); extendedDetailsGrid = this.GetExtendedDetailsGrid(); SetContent(); SetGroupNames(); SetHandlers(); SetLayout(); SetColumsRows(); AddUIElementsToBaseGrid(); SetRowsAllDetailsGrid(); AddGridsToAllDetailsGrid(); return allDetailsGrid; }
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)); }