示例#1
0
        void combinedControl1_TimeWindowChanged(object sender, EventArgs e)
        {
            _startTime = combinedControl1.Start;
            _endTime   = combinedControl1.End;

            combinedControl1.AreaGridData = _queryStore.GetGroupedData(_startTime, _endTime);
            combinedControl1.BarGridData  = _queryStore.GetRankedData(_startTime, _endTime);

            combinedControl1.Refresh();
        }
示例#2
0
        public Dashboard()
        {
            InitializeComponent();

            combinedControl1.Start = DateTime.Now;

            _startTime = combinedControl1.Start;
            _endTime   = combinedControl1.End;

            combinedControl1.Summary     = _summary;
            combinedControl1.BarName     = _barName;
            combinedControl1.GroupByName = _groupByName;

            _queryStore = new BigTableDataStore.QueryStore();
            //new QueryStore();
            combinedControl1.AreaGridData = _queryStore.GetGroupedData(_startTime, _endTime);
            combinedControl1.BarGridData  = _queryStore.GetRankedData(_startTime, _endTime);

            combinedControl1.TimeWindowChanged += new EventHandler(combinedControl1_TimeWindowChanged);

            combinedControl1.Refresh();
        }