本文整理匯總了C#中Chart.SetActivity方法的典型用法代碼示例。如果您正苦於以下問題:C# Chart.SetActivity方法的具體用法?C# Chart.SetActivity怎麽用?C# Chart.SetActivity使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Chart
的用法示例。
在下文中一共展示了Chart.SetActivity方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: InitializeInterface
//.........這裏部分代碼省略.........
//
this.tabPage1.Location = this.panel1.Location = new System.Drawing.Point(0, 0);
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);