/// <summary>
 ///
 /// </summary>
 /// <param name="teacher"></param>
 /// <param name="course"></param>
 public void CreateCourse(Teacher teacher, Course course)
 {
     ArchiveList.Add(new ArchiveItem()
     {
         CourseManager = new CourseProcessing()
         {
             Course = course, State = EnumState.Awaiting
         },
         Teacher          = teacher,
         StudentsAndRates = null
     });
 }
Exemple #2
0
 private void LoadArchive(List <string> listFiles)
 {
     foreach (string file in listFiles)
     {
         IntPtr hArchive = new IntPtr(0);
         bool   ret      = SFileOpenArchive(file, 0, 0, ref hArchive);
         if (ret)
         {
             Archives.Add(file, hArchive);
             ArchiveList.Add(file, new MPQArchive(hArchive));
         }
     }
 }
Exemple #3
0
        public void SetMap(Map map)
        {
            ArchiveList.Clear();
            if (map == null)
            {
                return;
            }

            for (int i = 0; i < map.Rooms.Count; i++)
            {
                ArchiveList.Add(map.Rooms[i]);
            }
            ArchiveList.Add(map.Stage);

            if (map.Rooms.Count > 0)
            {
                SelectedScene = map.Rooms[0];
            }
        }
 /// <summary>
 ///
 /// </summary>
 /// <param name="item"></param>
 public void AddData(ArchiveItem item) =>
 ArchiveList.Add(item);