public void Save(string filename) { if (File.Exists(filename)) { File.Delete(filename); } HutJsonFile <HutLogger <HutLogType> > .Write(filename, this, true); }
public List <IHutTaskAction> readActions(string filename) { if (File.Exists(filename)) { List <IHutTaskAction> servers = HutJsonFile <List <IHutTaskAction> > .Read(filename, true); if (servers != null) { actions.AddRange(servers); } } return(actions); }
public List <IHutTask> read(string filename) { if (File.Exists(filename)) { List <IHutTask> schedule = HutJsonFile <List <IHutTask> > .Read(filename, true); if (schedule != null) { tasks.AddRange(schedule); } } return(tasks); }
public void Load(string filename) { Logs = HutJsonFile <HutLogger <HutLogType> > .Read(filename, true).Logs; }
public void writeActions(string filename, List <IHutTaskAction> actions) { HutJsonFile <List <IHutTaskAction> > .Write(filename, actions, true); }
public void write(string filename, List <IHutTask> tasks) { List <IHutTask> schedule = tasks.OrderBy(o => o.TaskType).ToList(); HutJsonFile <List <IHutTask> > .Write(filename, schedule, true); }