public object Execute(object system) { TaskManagementSystem tasksystem = (TaskManagementSystem)system; tasksystem.Projects.Add(_project); return(null); }
public object Execute(object system) { TaskManagementSystem tasksystem = (TaskManagementSystem)system; Project project = tasksystem.Projects[_projectID]; project.Tasks.Add(_task); return(null); }
public object Execute(object system) { TaskManagementSystem tasksystem = (TaskManagementSystem)system; Project project = tasksystem.Projects[_projectID]; Task task = project.Tasks[_taskID]; task.WorkRecords.Add(_record); return(null); }
public void SetUp() { // O primeiro passo � limpar qualquer resqu�cio de // testes anteriores para come�ar com uma "base" limpa ClearPrevalenceBase(); _engine = PrevalenceActivator.CreateEngine(typeof(TaskManagementSystem), PrevalenceBase); _system = _engine.PrevalentSystem as TaskManagementSystem; }
public override void Build() { TaskManagementSystem .Task("Read for MDSD").Deadline("09-02-21 08:00").Status("In progress").Assign("Daniel") .Label("Reading").Label("MDSD") .Comment("Completed chapter 4").By("Daniel").PostedAt("07-02-21 14:00") .Comment("Completed chapter 11").By("Daniel").PostedAt("07-02-21 14.40") .Task("Post \"Internal DSL mock-up\"").Deadline("09-02-21 08:00").Status("Done").Assign("Daniel") .Label("Individual activity").Label("MDSD") .Comment("Various ideas: ....").By("Daniel").PostedAt("05-02-21 11.30") .Task("Assignment 1").Deadline("16-02-2021 08:45").Status("To do").Assign("Daniel") .Label("Assignment").Label("MDSD") .Build(); }
public override void Build() { TaskManagementSystem .Task("Prepare lovely dinner").Deadline("09-03-21 18:00").Status("To do").Assign("Daniel") .Label("Cooking") .Comment("Decided upon meatloaf").By("Daniel").PostedAt("07-03-21 14:21") .Comment("Done shopping").By("Daniel").PostedAt("07-02-21 15.42") .Task("Do laundry").Deadline("10-03-21 10:00").Status("In progress").Assign("Karoline") .Label("Laundry") .Comment("Sorted the clothes and started the machine").By("Karoline").PostedAt("10-03-21 08.30") .Task("Vacuum clean").Deadline("05-03-2021 12:00").Status("Done").Assign("Daniel") .Label("Cleaning") .Task("Wash the floors").Deadline("05-03-2021 13:00").Status("Done").Assign("Daniel") .Label("Cleaning") .Build(); }
public MainForm() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // _engine = PrevalenceActivator.CreateEngine(typeof(TaskManagementSystem), PrevalenceBase); _system = _engine.PrevalentSystem as TaskManagementSystem; RefreshProjectView(); _status.Text = PrevalenceBase; }