예제 #1
0
        public void Save(string filename)
        {
            if (File.Exists(filename))
            {
                File.Delete(filename);
            }

            HutJsonFile <HutLogger <HutLogType> > .Write(filename, this, true);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
 public void Load(string filename)
 {
     Logs = HutJsonFile <HutLogger <HutLogType> > .Read(filename, true).Logs;
 }
예제 #5
0
 public void writeActions(string filename, List <IHutTaskAction> actions)
 {
     HutJsonFile <List <IHutTaskAction> > .Write(filename, actions, true);
 }
예제 #6
0
        public void write(string filename, List <IHutTask> tasks)
        {
            List <IHutTask> schedule = tasks.OrderBy(o => o.TaskType).ToList();

            HutJsonFile <List <IHutTask> > .Write(filename, schedule, true);
        }