Esempio n. 1
0
        public void SaveToDataSet(GraphData dataSet)
        {
            TimeSeriesDataSet.GraphRow graphsRow = dataSet.GraphRow;

            graphsRow.BeginningDate  = this.dateTimePickerFrom.Value;
            graphsRow.BeginningDate2 = this.dateTimePickerFrom2.Value;
            graphsRow.EndingDate     = this.dateTimePickerTo.Value;
            graphsRow.PreviousDays   = (int)this.numericUpDownDays.Value;
            graphsRow.ShowTime       = this.m_showTime;
            graphsRow.TimeWindowType = this.TimeWindow;
        }
Esempio n. 2
0
        public void SetGraphsRowDefaults(TimeSeriesDataSet.GraphRow graphsRow)
        {
            graphsRow.TimeWindowType = "FromXToY";
            graphsRow.BeginningDate  = DateTime.Now.AddDays(-30);
            graphsRow.BeginningDate2 = DateTime.Now.AddDays(-30);
            graphsRow.EndingDate     = DateTime.Now;
            graphsRow.PreviousDays   = 90;
            graphsRow.ShowTime       = false;
            graphsRow.TimeZone       = Hdb.Instance.Server.TimeZone;
            int next = this.Graph.GetMaxGraphNumber() + 1;

            graphsRow.Name        = "Config " + next;
            graphsRow.GraphNumber = next;
        }