Ejemplo n.º 1
0
        protected void btnFromDays_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                csvDataTable = CSV_DataTable.ConvertCSVtoDataTable(filePath);
            }
            catch (Exception ex) { }

            SeriesCollectionOperate seriesCollectionOperate = new SeriesCollectionOperate();

            try
            {
                _ = LoopTask(seriesCollectionOperate, arSeries.Length);
            }
            catch (Exception ex) { /*System.Windows.MessageBox.Show(ex.Message);*/ }
            //DownloadFileFTP();
        }
Ejemplo n.º 2
0
        protected void btnFromDays_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                csvDataTable = CSV_DataTable.ConvertCSVtoDataTable(filePath);
            }
            catch (Exception ex) { }

            SeriesCollectionOperate seriesCollectionOperate = new SeriesCollectionOperate();

            try
            {
                for (int i = 0; i < series.Length; i++)
                {
                    Labels = seriesCollectionOperate.SetValues(SeriesCollection[i].Values, csvDataTable, 1, 2, series[i].Column,
                                                               (System.DateTime)pickedData.SelectedDate, (System.DateTime)PickerDataStop.SelectedDate, comboBoxHourStart.SelectedIndex,
                                                               comboBoxHourEnd.SelectedIndex, comboBoxMinuteStart.SelectedIndex, comboBoxMinuteEnd.SelectedIndex);
                }
            }
            catch (Exception ex) { System.Windows.MessageBox.Show("Укажите время и дату начала и конца графика"); }
        }