ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Series/BoxSeries_CustomValues.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace Steema.TeeChart.Samples
{
	public class Box_CustomValues : Samples.BaseForm
	{
    private System.Windows.Forms.CheckBox checkBox1;
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.Label label2;
    private System.Windows.Forms.Label label3;
    private System.Windows.Forms.Label label4;
    private Steema.TeeChart.Styles.Box box1;
		private Steema.TeeChart.Tools.GridBand gridBand1;
		private System.ComponentModel.IContainer components = null;

		public Box_CustomValues()
		{
			// This call is required by the Windows Form Designer.
			InitializeComponent();

      // add sample data
      box1.Clear();
      box1.Add(new double[11] {35, 36, 37, 38, 38, 39, 39, 40, 41, 44, 61});
      // the values aren't actualy calculated before series is drawn
      // so if you need them before, just call ReconstructFromData() method
      box1.ReconstructFromData(); 
    }

    private void UpdateDisplay()
    {
      label1.Text = "Median = " + box1.Median.ToString("0.00");
      label2.Text = "Inner Fences = [" + box1.InnerFence1.ToString("0.00") + " ; " + box1.InnerFence3.ToString("0.00") + "]";
      label3.Text = "Outer Fences = [" + box1.OuterFence1.ToString("0.00") + " ; " + box1.OuterFence3.ToString("0.00") + "]";
      label4.Text = "Adjacent Points = [" + box1.AdjacentPoint1.ToString("0.00") + " ; " + box1.AdjacentPoint3.ToString("0.00") + "]";
    }

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。