예제 #1
0
 public Overview2(OverviewModel model)
 {
     InitializeComponent();
     this.model        = model;
     lbl_Clerk.Content = this.model.Clerk.Name;
     filternames       = model.Filters.Select(x => x.FilterName).ToList();
     if (filternames.Count == 0)
     {
         Filter1.Title = "Kein Filter gespeichert"; Filter2.Title = "Kein Filter gespeichert";
     }
     if (filternames.Count == 1)
     {
         Filter1.Title = filternames[0]; Filter2.Title = "Kein Filter gespeichert";
     }
     if (filternames.Count > 1)
     {
         Filter1.Title = filternames[0]; Filter2.Title = filternames[1];
     }
 }
 public PieChart(OverviewModel filterModel)
 {
     InitializeComponent();
     this.filterModel = filterModel;
     this.DataContext = filterModel;
 }