public void acceptIdea(int studid, int ideaid) { Cidea toaccept = Program.database.listofstudent[studid - 1].lstofideas[ideaid]; Program.database.listofstudent[studid - 1].selectedproject = new Cproject(toaccept); attachedsubstoadvosor(); sent.addnewnotification(new Advisoracceptidea(toaccept, studid - 1, this)); sync(); }
public Advisoracceptidea(Cidea idea, int studid, Cadvisor advosir) { notification = new Idea_Accepted(idea, studid, advosir); }
public Studentproposedidea(Cidea Idea, int studid) { notification = new Proposed_Idea(Idea, studid); }
public Idea_Accepted(Cidea idea, int id, Cadvisor advosir) { des = "An idea has been Accepted by Advosor\n Advisor ID: " + advosir.id + "\n Advisor Name: " + advosir.firstname + "\n Std ID: " + (id + 1) + "\n Idea Id: " + idea.id + "\n Idea Description: " + idea.ideadescription; }
public Proposed_Idea(Cidea idea, int id) { Idea = idea; des = "An idea has been proposed by student\n Std ID: " + id + "\n Idea Name: " + idea.ideaname + "\n Idea Description: " + idea.ideadescription; }
public Cproject(Cidea projectidea) { this.projectidea = projectidea; comitt = new List <string>(); }