public void Update(string id, string newId, string name, FieldOfStudy fieldOfStudy, string description, int groupSize, int classLength,
                    int terminNumber, bool needsProjector, bool needsBoard, bool needsSmartBoard, OS needsOS, MainWindow context)
 {
     Update(id, newId, name, fieldOfStudy, description, groupSize, classLength, terminNumber, needsProjector, needsBoard, needsSmartBoard, needsOS);
     SetSelectedSubject(newId, context);
     // may exists list change
     context.NotifyAll("Subjects");
 }
        public Subject Add(string id, string name, FieldOfStudy fieldOfStudy, string description, int groupSize, int classLength,
                           int terminNumber, bool needsProjector, bool needsBoard, bool needsSmartBoard, OS needsOS, MainWindow context)
        {
            Subject added = Add(id, name, fieldOfStudy, description, groupSize, classLength, terminNumber, needsProjector, needsBoard, needsSmartBoard, needsOS);

            context.NotifyAll("Subjects");
            TerminHandler.Instance.AddSubject(id);
            return(added);
        }
        public Subject Add(string id, string name, FieldOfStudy fieldOfStudy, string description, int groupSize, int classLength,
                           int terminNumber, bool needsProjector, bool needsBoard, bool needsSmartBoard, OS needsOS)
        {
            Subject toAdd = new Subject(id, name, fieldOfStudy,
                                        description, groupSize, classLength, terminNumber,
                                        needsProjector, needsBoard, needsSmartBoard, needsOS);

            subjects.Add(id, toAdd);
            return(toAdd);
        }
Exemple #4
0
 public void Update(string id, string newId, string name, DateTime since, string description)
 {
     if (id != newId)
     {
         Remove(id);
         Add(newId, name, since, description);
     }
     else
     {
         fieldsOfStudy[id] = new FieldOfStudy(id, name, since, description);
     }
 }
 public void Update(string id, string newId, string name, FieldOfStudy fieldOfStudy, string description, int groupSize, int classLength,
                    int terminNumber, bool needsProjector, bool needsBoard, bool needsSmartBoard, OS needsOS)
 {
     if (id != newId)
     {
         Remove(id);
         Add(id, name, fieldOfStudy, description, groupSize, classLength, terminNumber, needsProjector, needsBoard, needsSmartBoard, needsOS);
     }
     else
     {
         subjects[id] = new Subject(id, name, fieldOfStudy, description, groupSize, classLength, terminNumber, needsProjector, needsBoard, needsSmartBoard, needsOS);
     }
 }
Exemple #6
0
        public Subject(string id, string name, FieldOfStudy fieldOfStudy, string description, int groupSize, int classLength, int terminNumber,
                       bool needsProjector, bool needsBoard, bool needsSmartBoard, OS needsOS)
            : this()
        {
            this._id          = id;
            this._name        = name;
            this._fos         = fieldOfStudy;
            this._description = description;
            this._groupSize   = groupSize;
            this._classLength = classLength;

            this._terminNumber       = terminNumber;
            this._unscheduledTermins = terminNumber; // bitno! - broj nerasp. termina

            this._needsProjector  = needsProjector;
            this._needsBoard      = needsBoard;
            this._needsSmartBoard = needsSmartBoard;
            this._needsOS         = needsOS;
        }
Exemple #7
0
 public void SetSelectedFieldOfStudy(FieldOfStudy fieldOfStudy, MainWindow context)
 {
     SelectedFieldOfStudy = fieldOfStudy;
     context.NotifyAll("SelectedFieldOfStudy");
 }
Exemple #8
0
 private FieldOfStudyHanlder()
 {
     fieldsOfStudy        = new Dictionary <string, FieldOfStudy>();
     SelectedFieldOfStudy = null;
 }