Example #1
0
 public Task CreateTask(Project project, string taskName, string taskDescription, string deadLine)
 {
     var task = new Task(project, taskName, taskDescription, deadLine);
     Logger.Logger.AddToLog("TaskFactory|CreateTask Task");
     OnTaskCreation(task);
     return task;
 }
Example #2
0
 private void Notify(Project project)
 {
     foreach (var subscriber in _subscribers)
     {
         subscriber.Inform(project);
     }
 }
Example #3
0
 public Task(Project project, string taskName, string taskDescription, string deadLine)
 {
     TaskName = taskName;
     TaskDescription = taskDescription;
     Deadline = DateTime.Parse(deadLine);
     Project = project;
 }
Example #4
0
 public Project CreateProject(Company company, string projectName, string decription)
 {
     var project = new Project(company, projectName, decription);
     Logger.Logger.AddToLog("ProjectFactory|CreateProject Project");
     OnProjectCreation(project);
     return project;
 }
Example #5
0
 public void ShowProjectInfo(Project project)
 {
     project.DisplayAll();
 }
Example #6
0
 public void Inform(Project p)
 {
     Console.WriteLine("Director: All company must work on new project!");
 }
Example #7
0
 public void OnProjectCreation(Project project)
 {
     _displayInfoAction.ShowProjectInfo(project);
     Notify(project);
 }
Example #8
0
 public virtual void AddProject(Project project)
 {
     ProjectList.Add(project);
 }
Example #9
0
 public void Inform(Project p)
 {
     Console.WriteLine("HumanResources: We have only 3 free employee for this project!");
 }