private async void  btnCreate_Click(object sender, RoutedEventArgs e)
        {
            if (!EDSClass.Single.Ready)
            {
                MessageBox.Show("ЕДС сервер не готов");
                return;
            }

            EDSClass.Disconnect();
            EDSClass.Connect();

            DateTime dt = clndDate.SelectedDate.Value;

            report = new AVRCHMReport();
            DateTime ds = dt.AddHours(0);
            DateTime de = dt.AddHours(24);

            if (de > DateTime.Now.AddMinutes(-5).AddHours(-2))
            {
                de = DateTime.Now.AddMinutes(-5).AddHours(-2);
            }
            int  winSize  = Int32.Parse(txtTWin.Text);
            int  tPlanMax = Int32.Parse(txtTPlan.Text);
            int  zvn      = Int32.Parse(txtZVN.Text);
            bool ok       = await report.ReadData(ds, de, zvn, tPlanMax, winSize);

            if (ok)
            {
                grdEvents.ItemsSource = report.Events.ToList();
                currentDate           = dt;
            }
        }
        public async Task <bool> init()
        {
            AllPoints = new SortedList <string, EDSPointInfo>();
            bool ok = true;

            ok &= await EDSPointsClass.getPointsArr("11VT.*", AllPoints);

            ok &= await EDSPointsClass.getPointsArr("PBR.*", AllPoints);

            AVRCHMReport.init(AllPoints);
            return(true);
        }