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()); }
private void LoadSubjects() { var subjects = _subjectFileService.Load(); if (subjects.Any()) { SubjectListBox.Items.AddRange(subjects.Select(subject => (object)subject.Name).ToArray()); ClearSubjectButton.Enabled = true; } }
public void Handle(Command command) { var subjects = _subjectFileService.Load(); _streamWrapperService.SendObject(subjects); }