public void Save(string fileName, ClassSchedule schedule) { string jsonOuput = JsonConvert.SerializeObject(schedule); using (System.IO.StreamWriter file = new System.IO.StreamWriter(_path + "/" + fileName)) { file.WriteLine(jsonOuput); } }
public void NewClassSchedule() { this.ClassSchedule = new ClassSchedule(_service, _timeZone); }
public void LoadCalendar(string fileName) { this.ClassSchedule = _storage.Load(fileName); this.ClassSchedule.SetService(_service); }