private string CreateLocalHash() { DbCourse db = new DbCourse(); List <Course> courses = db.GetAllCourses(); StringBuilder sb = new StringBuilder(); foreach (var c in courses) { sb.Append(Hasher.Base64Decode(c.id)); } return(Hasher.CalculateMd5Hash(sb.ToString())); }
private async void GetAllFilters(object sender, EventArgs e) { DbLocation lc = new DbLocation(); DbCourse cc = new DbCourse(); DbStudyGroup sgc = new DbStudyGroup(); DbJobType jtc = new DbJobType(); List <Location> locationsFilter = lc.GetAllLocations(); List <Course> coursesFilter = cc.GetAllCourses(); List <StudyGroup> studyGroupsFilter = sgc.GetAllStudyGroups(); List <JobType> jobTypesJobFilter = jtc.GetJobTypeFilterJob(); List <JobType> jobTypesProjectFilter = jtc.GetJobTypeFilterProject(); System.Diagnostics.Debug.WriteLine("GetAllFilters: locationsFilter.Count: " + locationsFilter.Count); System.Diagnostics.Debug.WriteLine("GetAllFilters: coursesFilter.Count: " + coursesFilter.Count); System.Diagnostics.Debug.WriteLine("GetAllFilters: studyGroupsFilter.Count: " + studyGroupsFilter.Count); System.Diagnostics.Debug.WriteLine("GetAllFilters: jobTypesJobFilter.Count: " + jobTypesJobFilter.Count); System.Diagnostics.Debug.WriteLine("GetAllFilters: jobTypesProjectFilter.Count: " + jobTypesProjectFilter.Count); }