public Employee(int employeeId, string userName, string password, EmployeeStatus status, EmployeeType type, Activities capability) { this.employeeId = employeeId; this.userName = userName; this.password = password; this.status = status; this.type = type; this.capability = capability; tf = new List <TechnicalFailure>(); Program.Employees.Add(this); }
public Assign_Counserlor_To_An_Activity() { InitializeComponent(); foreach (Activity ar in Program.Activities) { if (ar.getEmbedCounselor() == false) { activityNum = ar.getId(); Activities act = ar.getActivity(); DateTime dt = ar.getStartTime(); comboBox1.Items.Add(String.Format("{0} | {1}", act, dt)); } } }
public Activity(int num, int ages, Activities activity, bool needChair, bool needTable, bool needComputer, bool needBoard, DateTime startActivity, DateTime endActivity, int numOfParticipants, bool embedCounselor, bool embedRoom) { this.num = num; this.ages = ages; this.activity = activity; this.needChair = needChair; this.needTable = needTable; this.needComputer = needComputer; this.needBoard = needBoard; this.startActivity = startActivity; this.endActivity = endActivity; this.numOfParticipants = numOfParticipants; this.embedCounselor = embedCounselor; this.embedRoom = embedRoom; MaterialQuantity = new List <MaterialsPerActivity>(); }
public Order_Materials() { InitializeComponent(); foreach (Activity ar in Program.Activities) { if (ar.getEmbedRoom() == false) { Activities act = ar.getActivity(); DateTime dt = ar.getStartTime(); activityNum = ar.getId(); comboBox1.Items.Add(String.Format("{0} | {1}", act, dt)); } } foreach (Material matit in Program.Materials) { material = matit.getTypeOfMaterial(); if (!listBox1.Items.Contains(material)) { listBox1.Items.Add(material); } } }