Ejemplo n.º 1
0
 public Event(Course K, List<string> G, int Trajanje, int id, int L, int C, int sNo)
 {
     kolegij = K;
     grupe = G;
     duration = Trajanje;
     eventID = id;
     L_type = L;
     C_type = C;
     studentNumber = sNo;
 }
Ejemplo n.º 2
0
 public int brojPreklapanja(Course k)
 {
     int r = 0;
     for (int i = 0; i < 5; i++)
     {
         for (int j = 0; j < 12; j++)
         {
             if (week[i, j] > 0 && k.week[i, j] > 0)
                 r++;
         }
     }
     return r;
 }
Ejemplo n.º 3
0
        public void populateCourseList(string s)
        {
            int id = 0;
            StreamReader myFile = new StreamReader(s);
            string myString = myFile.ReadToEnd();

            string[] linije = Regex.Split(myString,"\r\n");

            foreach (string linija in linije)
            {
                string[] info = linija.Split(' ');
                Course tmp = new Course(info[0], info[3], Convert.ToInt32(info[2]), Convert.ToInt32(info[2]), id);
                id++;
                CourseList.Add(tmp);
                //Console.Write(info[1]);
            }
            myFile.Close();
        }