private void PopulateDashboard() { var series = chtLastXDays.Series["LastXDays_Series"]; series.XValueType = ChartValueType.Date; using (QueriesTableAdapters.sp_GetDataForLastXDaysTableAdapter ta = new QueriesTableAdapters.sp_GetDataForLastXDaysTableAdapter()) { using (Queries.sp_GetDataForLastXDaysDataTable dt = new Queries.sp_GetDataForLastXDaysDataTable()) { ta.Fill(dt, LoginRow.user_id, Convert.ToInt32(ddDateRange.SelectedValue)); MainGraph(dt); GridOfValues(dt); MinMaxValues(dt); PieCharts(dt); GetHbA1c(); RefreshUpdatePanels(); } } }
private void PopulateDashboard() { var series = chtLastXDays.Series["LastXDays_Series"]; series.XValueType = ChartValueType.Date; using (QueriesTableAdapters.sp_GetDataForLastXDaysTableAdapter ta = new QueriesTableAdapters.sp_GetDataForLastXDaysTableAdapter()) { using (Queries.sp_GetDataForLastXDaysDataTable dt = new Queries.sp_GetDataForLastXDaysDataTable()) { ta.Fill(dt, LoginRow.user_id, Convert.ToInt32(ddDateRange.SelectedValue)); MainGraph(dt); GridOfValues(dt); MinMaxValues(dt); PieCharts(dt); GetHbA1c(); RefreshUpdatePanels(); } } }