Пример #1
0
 internal void ChangeTask(int id, ModuleTask newTask)
 {
     Log.System(string.Format("Changing task : {0}\r\nTitle from: {1} to: {2}\r\nDescription from: {3} to: {4}",
                              _TaskManeger[id].Title,
                              _TaskManeger[id].Title,
                              _TaskManeger[id].Description,
                              newTask.Title,
                              newTask.Description));
     _TaskManeger[id] = newTask;
     Log.System("Done");
     Log.Spacer();
     OnModuleHasChanged();
 }
 internal void ChangeTaskInModule(int moduleid, int taskid, ModuleTask newTask)
 {
     _Modules[moduleid].ChangeTask(taskid, newTask);
 }
Пример #3
0
 internal void AddTask(ModuleTask task)
 {
     _TaskManeger.Add(task);
     Log.System(string.Format("Task has been added to module : {0}", ModuleName));
     OnModuleHasChanged();
 }
 internal void AddTaskToModule(int index, ModuleTask task)
 {
     _Modules[index].AddTask(task);
 }