當前位置: 首頁>>代碼示例>>C#>>正文


C# Chart.SetCalories方法代碼示例

本文整理匯總了C#中Chart.SetCalories方法的典型用法代碼示例。如果您正苦於以下問題:C# Chart.SetCalories方法的具體用法?C# Chart.SetCalories怎麽用?C# Chart.SetCalories使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Chart的用法示例。


在下文中一共展示了Chart.SetCalories方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: InitializeInterface


//.........這裏部分代碼省略.........
            this.tabPage1.Name = "tabPage1";
            this.tabPage1.Size = new System.Drawing.Size(240, 242);
            this.tabPage1.Text = "Visualize";

            // 
            // tabPage2
            // 
            this.panel2.Controls.Add(this.label5);
            if (this.sensors.IsHR) //only add it if there it a HR
                this.panel2.Controls.Add(this.label4);
            this.panel2.Controls.Add(this.pictureBox1);
            this.panel2.Controls.Add(this.label3);
            this.panel2.Controls.Add(this.label2);
            this.panel2.Controls.Add(this.label1);
            this.panel2.Controls.Add(this.resetButton);
            this.panel2.Controls.Add(this.startStopButton);
            this.tabPage2.Location = new System.Drawing.Point(0, 0);
            this.tabPage2.Name = "tabPage2";
            this.tabPage2.Size = new System.Drawing.Size(232, 239);
            this.tabPage2.Text = "Annotate";
            // 
            // tabPage3
            // 
            //this.tabPage3.Controls.Add(this.label6);
            //this.tabPage3.Controls.Add(this.label16);

            GpStatusPlus stat = NativeMethods.GdiplusStartup(out token, input, out output);            
            pieChart = new Charts.twodimensional.PieChart();
            pieChart.IsStretch = true;
            this.aList = new ActivitySummary.Reader(null, this.dataDirectory).parse();
            pieChart.Data = aList.toPercentHashtable();
            pieChart.SetActivity("No Activity");
            pieChart.SetTime(0, 0,0);
            pieChart.SetCalories(0, 0);
            this.tabPage3.Controls.Add(pieChart);
        //pieChartClearButton = new Button();
        //pieChartClearButton.Text = "Clear";
        //pieChartClearButton.Name = "pieChartButton";
        //pieChartClearButton.Size = new System.Drawing.Size(72, 20);
        //pieChartClearButton.Location = new Point(0, 0);
        //pieChartClearButton.Click += new System.EventHandler(this.pieChartClearButton_Click);
        //this.tabPage3.Controls.Add(pieChartClearButton);

            
            this.tabPage3.Location = new System.Drawing.Point(0, 0);
            this.tabPage3.Name = "tabPage3";
            this.tabPage3.Size = new System.Drawing.Size(232, 239);
            this.tabPage3.Text = "Summary";
            // tabPage4
            // 
            this.panel4.Controls.Add(this.label8);
            this.panel4.Controls.Add(this.label7);
            this.panel4.Controls.Add(this.label9);
            this.tabPage4.Location = new System.Drawing.Point(0, 0);
            this.tabPage4.Name = "tabPage4";
            this.tabPage4.Size = new System.Drawing.Size(232, 239);
            this.tabPage4.Text = "Quality";

            //tabPage5
            //

            this.tabPage5.Controls.Add(this.label17);
            this.tabPage5.Controls.Add(this.pictureBox2);
            this.tabPage5.Controls.Add(this.button2);

            this.tabPage5.Location = new System.Drawing.Point(0, 0);
開發者ID:intille,項目名稱:mitessoftware,代碼行數:67,代碼來源:MITesDataCollectionForm.Designer.cs


注:本文中的Chart.SetCalories方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。