Exemple #1
0
 public StatisticViewModel(SubjectModel model)
 {
     SeriesCollection       = new SeriesCollection();
     ColumnSeriesCollection = new SeriesCollection();
     YearSeriesCollection   = new SeriesCollection();
     this.model             = model;
     MonthLabels            = new[] { "Январь", "Ферваль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь" };
     Formatter = value => value.ToString("N");
 }
 public SubjectsViewModel(StudentModel studentModel, SubjectModel subjectModel)
 {
     Subjects          = new ObservableCollection <Subject>();
     Students          = studentModel.Items;
     this.subjectModel = subjectModel;
 }