Example #1
0
 public Test()
 {
     manager = Diction_Master___Library.ContentManager.CreateInstance();
     InitializeComponent();
     ButtonBase_OnClick();
     //WrapPanel1.DataContext = manager.GetCourses();
 }
Example #2
0
 public Content(Diction_Master___Library.ContentManager manager)
 {
     _contentManager             = manager;
     _languages                  = new LanguagesDictionary();
     _courseImagesCache          = new Dictionary <string, long>();
     _educationalLevelDictionary = new Dictionary <string, long>();
     _gradesDictionary           = new Dictionary <string, long>();
     InitializeComponent();
     LoadCourses();
 }
 public WeeksCreation(long parentID, Diction_Master___Library.ContentManager manager)
 {
     _contentManager = manager;
     TermI           = new ObservableCollection <Component>();
     TermII          = new ObservableCollection <Component>();
     TermIII         = new ObservableCollection <Component>();
     _selecetedGrade = parentID;
     LoadWeeks();
     InitializeComponent();
 }
 public QuizCreation(long parent, Diction_Master___Library.ContentManager manager, bool edit, long quiz)
 {
     _contentManager = manager;
     _selectedLesson = parent;
     _edit           = edit;
     _wrongAnswers   = new ObservableCollection <string>();
     InitializeComponent();
     if (edit)
     {
         _selectedQuiz     = quiz;
         textBoxTitle.Text = (_contentManager.GetComponent(quiz) as Quiz).Title;
     }
     LoadQuestions();
 }
 public TopicsCreation(Diction_Master___Library.ContentManager manager)
 {
     _contentManager = manager;
     _topics         = new ObservableCollection <Component>();
     InitializeComponent();
     _topics                   = _contentManager.GetAllTopics();
     listBox.ItemsSource       = _topics;
     listBox.DisplayMemberPath = "Title";
     for (int i = 0; i < 100; i++)
     {
         comboBox.Items.Add(i);
     }
     comboBox.Text = 1.ToString();
 }
 public ContentUpload(long parent, Diction_Master___Library.ContentManager manager, bool topics)
 {
     _contentManager = manager;
     _selectedGrade  = parent;
     _topics         = topics;
     lessonContent   = new ObservableCollection <Component>();
     _imagesCache    = new Dictionary <string, long>();
     //---------------------
     lessons = new ObservableCollection <Lesson>();
     //---------------------
     savedChanges = true;
     InitializeComponent();
     LoadLessons();
 }
 public LessonsCreation(long parentID, Diction_Master___Library.ContentManager manager, bool topics)
 {
     _contentManager = manager;
     _selectedGrade  = parentID;
     _topics         = topics;
     lessons         = new ObservableCollection <Component>();
     InitializeComponent();
     LoadParentComponents();
     if (topics)
     {
         textBlock4.Visibility = Visibility.Collapsed;
         textBox3.Visibility   = Visibility.Collapsed;
         textBlock.Text        = "Topics";
     }
 }
Example #8
0
 private void SetupServer()
 {
     clientManagerAudio      = new ClientManager(ApplicationType.Audio);
     clientManagerAudio.Port = 30011;
     clientManagerAudio.Start();
     clientManagerDiction      = new ClientManager(ApplicationType.Diction);
     clientManagerDiction.Port = 30012;
     clientManagerDiction.Start();
     clientManagerTeachers      = new ClientManager(ApplicationType.Teachers);
     clientManagerTeachers.Port = 30013;
     clientManagerTeachers.Start();
     contentManager = Diction_Master___Library.ContentManager.CreateInstance();
     contentManager.Attach(clientManagerAudio);
     contentManager.Attach(clientManagerDiction);
     contentManager.Attach(clientManagerTeachers);
     contentManager.Start();
 }