public DisciplineForm()
 {
     InitializeComponent();
     study             = new BSTUStudy();
     studyPlane        = new StudyPlane();
     studyPlaneBuilder = new StudyPlaneBuilder();
     formsStyle        = FormsStyle.GetInstance();
 }
Пример #2
0
        private void ShowSavedButton_Click(object sender, EventArgs e)
        {
            StudyPlane saved = new StudyPlane();

            using (StreamReader reader = new StreamReader(BSTUStudy.filePath))
                saved = JsonConvert.DeserializeObject <StudyPlane>(reader.ReadToEnd());

            ShowSaved(saved);
        }
        public void ShowSaved(StudyPlane saved)
        {
            var cloneLecturer   = saved.lecturer.DeepCopy();
            var cloneDiscipline = saved.discipline.DeepCopy();

            ShowWin.Text = string.Format("наз. дисциплины: {0}\r\n" +
                                         "кол. лаб: {1}\r\n" +
                                         "кол. лекций: {2}\r\n" +
                                         "{3}\r\n" +
                                         "{4}\r\n" +
                                         "контроль знаний: {5}\r\n" +
                                         "фио: {6}\r\n" +
                                         "кафедра: {7}\r\n" +
                                         "аудитория: {8}",
                                         cloneDiscipline.disicplineName, cloneDiscipline.labNumber, cloneDiscipline.lecNumber,
                                         saved.discipline.curs, saved.discipline.semestr, cloneDiscipline.knowledgeControl,
                                         cloneLecturer.fio, cloneLecturer.cafedra, cloneLecturer.audienceNumber);
        }