ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Axis/Log_CustomIncrement.cs

(开头部分) 1KB

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

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

namespace Steema.TeeChart.Samples
{
	public class Log_CustomIncrement : Steema.TeeChart.Samples.BaseForm
	{
    private Steema.TeeChart.Styles.Line line1;
		private System.ComponentModel.IContainer components = null;
    private const int majorcount = 4; 
    private double[] majors = new double[majorcount];
    private System.Windows.Forms.CheckBox checkBox1;
    private System.Windows.Forms.CheckBox checkBox2; 
    private double[] minors = new double[2*majorcount-2]; 

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

      // major ticks = labels 
      majors[0] = 0.1; 
      majors[1] = 0.2; 
      majors[2] = 0.5; 
      majors[3] = 1.0; 

      // two minors between each major tick 
      minors[0] = 0.12; 
      minors[1] = 0.17; 

      minors[2] = 0.30; 
      minors[3] = 0.38; 

      minors[4] = 0.55; 
      minors[5] = 0.7;

      for (int t=0; t<100; t++)
        line1.Add(t,2.0E-3*(5*t-50)*(2*t-10)+5.0);
		}

		/// <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>

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

AI 解读 AI

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

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