Пример #1
0
        private void FillSubjectList()
        {
            var subjectFileService = new SubjectFileService(ConfigContainer.GetConfig <EditorConfig>().SaveFolder);
            var subjects           = subjectFileService.Load();

            SelectSubjectComboBox.Items.AddRange(subjects.Select(s => (object)s.Name).ToArray());
        }
Пример #2
0
        private void LoadSubjects()
        {
            var subjects = _subjectFileService.Load();

            if (subjects.Any())
            {
                SubjectListBox.Items.AddRange(subjects.Select(subject => (object)subject.Name).ToArray());
                ClearSubjectButton.Enabled = true;
            }
        }
Пример #3
0
        public void Handle(Command command)
        {
            var subjects = _subjectFileService.Load();

            _streamWrapperService.SendObject(subjects);
        }