本文整理汇总了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);