Пример #1
0
        private void AddCategories()
        {
            //CPUPerformance.CPUView cpuView = new CPUPerformance.CPUView();
            SampleModel cpuDemo = new SampleModel("Task Manager Demo", "", "CPUPerformance.CPUView");
            cpuDemo.IsHeader = false;

            //Sparrow.Chart.Demos.Demos.PerformanceDemo.PerformanceDemo performanceView = new Demos.PerformanceDemo.PerformanceDemo();
            SampleModel performanceDemo = new SampleModel("Performance Demo", "", "Sparrow.Chart.Demos.Demos.PerformanceDemo.PerformanceDemo");
            cpuDemo.IsHeader = false;

            SampleModel liveDataDemo = new SampleModel("Live Datas Demo", "", "Sparrow.Chart.Demos.Demos.LiveDatasDemo.LiveDatasDemo");
            liveDataDemo.IsHeader = false;

            List<SampleModel> showCaseSamples = new List<SampleModel>();
            showCaseSamples.Add(cpuDemo);
            showCaseSamples.Add(performanceDemo);
            showCaseSamples.Add(liveDataDemo);

            CategoryModel showCase = new CategoryModel("Showcase", showCaseSamples);
            showCase.IsHeader = true;
            Categories.Add(showCase);
        }
Пример #2
0
 public CategoryModel(string categoryName, List <SampleModel> samples)
 {
     this.CategoryName  = categoryName;
     this.SelectedModel = new SampleModel("", "", "");
     this.Samples       = samples;
 }
Пример #3
0
 public CategoryModel(string categoryName)
 {
     this.CategoryName  = categoryName;
     this.SelectedModel = new SampleModel("", "", "");
     this.Samples       = new List <SampleModel>();
 }