public DiagramsCreator(WcfLogin Login, OxyPlotModel oxyPlotModel)
 {
     cl = new DietCalendarService2Client();
     this.Login = Login;
     Consumed = cl.DownloadConsumed(Login).ToList();
     AllDate = GetaDate(Consumed);
     this.OxyPlotModel = oxyPlotModel;
 }
        public StataisticWindow(WcfLogin Login)
        {
            InitializeComponent();
            oxyPlotModel = new OxyPlotModel();
            this.DataContext = oxyPlotModel;
            Logg = Login;

            dc = new DiagramsCreator(new WcfLogin() { Name = Login.Name, Password = Login.Password }, oxyPlotModel);

            dc.SetConsumeDate(dataOd, dataDo);
        }