コード例 #1
0
 public ActionResult GanttViews() {
     ChartViewTypeDemoOptions options = new ChartViewTypeDemoOptions();
     options.View = DevExpress.XtraCharts.ViewType.Gantt;
     Session[ChartDemoHelper.OptionsKey] = options;
     Session[ChartDemoHelper.CompletedDateKey] = ProjectsProvider.DefaultCompletedDate;
     return DemoView("GanttViews", ProjectsProvider.GetProjectTasks(ProjectsProvider.DefaultCompletedDate));
 }
コード例 #2
0
        public ActionResult RangeViews()
        {
            ChartViewTypeDemoOptions options = new ChartViewTypeDemoOptions();

            options.View = DevExpress.XtraCharts.ViewType.RangeBar;
            ViewData[ChartDemoHelper.OptionsKey] = options;
            return(DemoView("RangeViews", OilPricesProvider.GetOilPrices()));
        }
コード例 #3
0
        public ActionResult GanttViews()
        {
            ChartViewTypeDemoOptions options = new ChartViewTypeDemoOptions();

            options.View = DevExpress.XtraCharts.ViewType.Gantt;
            Session[ChartDemoHelper.OptionsKey]       = options;
            Session[ChartDemoHelper.CompletedDateKey] = ProjectsProvider.DefaultCompletedDate;
            return(DemoView("GanttViews", ProjectsProvider.GetProjectTasks(ProjectsProvider.DefaultCompletedDate)));
        }
コード例 #4
0
 public ActionResult GanttViews([Bind] ChartViewTypeDemoOptions options)
 {
     Session[ChartDemoHelper.OptionsKey] = options;
     if (options.View == DevExpress.XtraCharts.ViewType.Gantt)
     {
         Session[ChartDemoHelper.CompletedDateKey] = ProjectsProvider.DefaultCompletedDate;
         return(DemoView("GanttViews", ProjectsProvider.GetProjectTasks(ProjectsProvider.DefaultCompletedDate)));
     }
     else
     {
         object model = ProjectsProvider.GetProjectsTasks();
         Session[ChartDemoHelper.ModelKey] = model;
         return(DemoView("GanttViews", model));
     }
 }
コード例 #5
0
 public ActionResult RangeViews() {
     ChartViewTypeDemoOptions options = new ChartViewTypeDemoOptions();
     options.View = DevExpress.XtraCharts.ViewType.RangeBar;
     ViewData[ChartDemoHelper.OptionsKey] = options;
     return DemoView("RangeViews", OilPricesProvider.GetOilPrices());
 }
コード例 #6
0
 public ActionResult RangeViews([Bind] ChartViewTypeDemoOptions options)
 {
     ViewData[ChartDemoHelper.OptionsKey] = options;
     return(DemoView("RangeViews", OilPricesProvider.GetOilPrices()));
 }