Пример #1
0
        protected void CalcSinusFunction_3(GraphLib.DataSource ds, int idx, float time)
        {
            GraphLib.cPoint[] src = ds.Samples;
            for (int i = 0; i < src.Length; i++)
            {
                src[i].x = i;
                src[i].y = 200 + (float)((200 * Math.Sin((idx + 1) * (time + i * 100) / 8000.0))) +
                           +(float)((40 * Math.Sin((idx + 1) * (time + i * 200) / 2000.0)));

                /**
                 *          (float)( 4* Math.Sin( ((time + (i+8) * 100) / 900.0)))+
                 *          (float)(28 * Math.Sin(((time + (i + 8) * 100) / 290.0))); */
            }
        }
Пример #2
0
        private String RenderXLabels(GraphLib.DataSource s, int idx)
        {
            String label = "";

            if (s.Name == names[3])
            {
                int value = (int)(s.Samples[idx].x / 30);
                label = "" + value;
            }
            else
            {
                int value = (int)(s.Samples[idx].x / 20);
                label = "" + value + "\"";
            }

            return(label);
        }
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            GraphLib.DataSource dataSource2 = new GraphLib.DataSource();
            this.label1 = new System.Windows.Forms.Label();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker();
            this.textBox9 = new System.Windows.Forms.TextBox();
            this.label13 = new System.Windows.Forms.Label();
            this.label12 = new System.Windows.Forms.Label();
            this.textBox8 = new System.Windows.Forms.TextBox();
            this.label11 = new System.Windows.Forms.Label();
            this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
            this.textBox7 = new System.Windows.Forms.TextBox();
            this.label10 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.textBox6 = new System.Windows.Forms.TextBox();
            this.textBox5 = new System.Windows.Forms.TextBox();
            this.textBox4 = new System.Windows.Forms.TextBox();
            this.label7 = new System.Windows.Forms.Label();
            this.textBox3 = new System.Windows.Forms.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.textBox2 = new System.Windows.Forms.TextBox();
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.button1 = new System.Windows.Forms.Button();
            this.listBox1 = new System.Windows.Forms.ListBox();
            this.label2 = new System.Windows.Forms.Label();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.dataGridView1 = new System.Windows.Forms.DataGridView();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.display = new GraphLib.PlotterDisplayEx();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
            this.groupBox3.SuspendLayout();
            this.SuspendLayout();
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Dock = System.Windows.Forms.DockStyle.Right;
            this.label1.ForeColor = System.Drawing.SystemColors.AppWorkspace;
            this.label1.Location = new System.Drawing.Point(904, 16);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(65, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "V: 1.0.0.001";
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.dateTimePicker2);
            this.groupBox1.Controls.Add(this.textBox9);
            this.groupBox1.Controls.Add(this.label13);
            this.groupBox1.Controls.Add(this.label12);
            this.groupBox1.Controls.Add(this.textBox8);
            this.groupBox1.Controls.Add(this.label11);
            this.groupBox1.Controls.Add(this.dateTimePicker1);
            this.groupBox1.Controls.Add(this.textBox7);
            this.groupBox1.Controls.Add(this.label10);
            this.groupBox1.Controls.Add(this.label9);
            this.groupBox1.Controls.Add(this.label8);
            this.groupBox1.Controls.Add(this.textBox6);
            this.groupBox1.Controls.Add(this.textBox5);
            this.groupBox1.Controls.Add(this.textBox4);
            this.groupBox1.Controls.Add(this.label7);
            this.groupBox1.Controls.Add(this.textBox3);
            this.groupBox1.Controls.Add(this.label6);
            this.groupBox1.Controls.Add(this.label5);
            this.groupBox1.Controls.Add(this.textBox2);
            this.groupBox1.Controls.Add(this.textBox1);
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.button1);
            this.groupBox1.Controls.Add(this.listBox1);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
            this.groupBox1.Location = new System.Drawing.Point(0, 0);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(972, 254);
            this.groupBox1.TabIndex = 1;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Ввод данных";
            // 
            // dateTimePicker2
            // 
            this.dateTimePicker2.Location = new System.Drawing.Point(293, 17);
            this.dateTimePicker2.Name = "dateTimePicker2";
            this.dateTimePicker2.Size = new System.Drawing.Size(139, 20);
            this.dateTimePicker2.TabIndex = 26;
            // 
            // textBox9
            // 
            this.textBox9.Location = new System.Drawing.Point(439, 76);
            this.textBox9.Name = "textBox9";
            this.textBox9.ReadOnly = true;
            this.textBox9.Size = new System.Drawing.Size(100, 20);
            this.textBox9.TabIndex = 25;
            // 
            // label13
            // 
            this.label13.AutoSize = true;
            this.label13.Location = new System.Drawing.Point(359, 79);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(79, 13);
            this.label13.TabIndex = 24;
            this.label13.Text = "Max  t C° печи:";
            // 
            // label12
            // 
            this.label12.AutoSize = true;
            this.label12.Location = new System.Drawing.Point(335, 185);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(98, 13);
            this.label12.TabIndex = 23;
            this.label12.Text = "Min t C° на 1 пике:";
            // 
            // textBox8
            // 
            this.textBox8.Location = new System.Drawing.Point(439, 182);
            this.textBox8.Name = "textBox8";
            this.textBox8.Size = new System.Drawing.Size(100, 20);
            this.textBox8.TabIndex = 22;
            // 
            // label11
            // 
            this.label11.AutoSize = true;
            this.label11.Location = new System.Drawing.Point(100, 19);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(36, 13);
            this.label11.TabIndex = 21;
            this.label11.Text = "Дата:";
            // 
            // dateTimePicker1
            // 
            this.dateTimePicker1.Location = new System.Drawing.Point(142, 17);
            this.dateTimePicker1.Name = "dateTimePicker1";
            this.dateTimePicker1.Size = new System.Drawing.Size(145, 20);
            this.dateTimePicker1.TabIndex = 20;
            // 
            // textBox7
            // 
            this.textBox7.Location = new System.Drawing.Point(439, 127);
            this.textBox7.Name = "textBox7";
            this.textBox7.ReadOnly = true;
            this.textBox7.Size = new System.Drawing.Size(100, 20);
            this.textBox7.TabIndex = 19;
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(365, 124);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(68, 26);
            this.label10.TabIndex = 18;
            this.label10.Text = "Амлитуда\r\n модуляции:";
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(90, 76);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(135, 13);
            this.label9.TabIndex = 17;
            this.label9.Text = "~Мин t C° открытой печи:";
            this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(89, 48);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(136, 13);
            this.label8.TabIndex = 16;
            this.label8.Text = "~ Средняя t C°  прогонки:";
            this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // textBox6
            // 
            this.textBox6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.textBox6.Location = new System.Drawing.Point(231, 71);
            this.textBox6.Name = "textBox6";
            this.textBox6.Size = new System.Drawing.Size(100, 22);
            this.textBox6.TabIndex = 15;
            this.textBox6.Text = "650";
            // 
            // textBox5
            // 
            this.textBox5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.textBox5.Location = new System.Drawing.Point(231, 43);
            this.textBox5.Name = "textBox5";
            this.textBox5.Size = new System.Drawing.Size(100, 22);
            this.textBox5.TabIndex = 14;
            this.textBox5.Text = "1100";
            // 
            // textBox4
            // 
            this.textBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.textBox4.Location = new System.Drawing.Point(439, 208);
            this.textBox4.Name = "textBox4";
            this.textBox4.Size = new System.Drawing.Size(100, 29);
            this.textBox4.TabIndex = 13;
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(360, 211);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(73, 26);
            this.label7.TabIndex = 12;
            this.label7.Text = "Среднее t C° \r\nна прогонке:";
            // 
            // textBox3
            // 
            this.textBox3.Location = new System.Drawing.Point(439, 101);
            this.textBox3.Name = "textBox3";
            this.textBox3.ReadOnly = true;
            this.textBox3.Size = new System.Drawing.Size(100, 20);
            this.textBox3.TabIndex = 11;
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(359, 104);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(73, 13);
            this.label6.TabIndex = 10;
            this.label6.Text = "Средняя t C°:";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(337, 150);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(101, 26);
            this.label5.TabIndex = 9;
            this.label5.Text = "Max t C°\r\n(начало прогонки):";
            // 
            // textBox2
            // 
            this.textBox2.Location = new System.Drawing.Point(439, 156);
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new System.Drawing.Size(100, 20);
            this.textBox2.TabIndex = 8;
            // 
            // textBox1
            // 
            this.textBox1.Location = new System.Drawing.Point(439, 50);
            this.textBox1.Name = "textBox1";
            this.textBox1.ReadOnly = true;
            this.textBox1.Size = new System.Drawing.Size(100, 20);
            this.textBox1.TabIndex = 7;
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(6, 19);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(88, 26);
            this.label4.TabIndex = 6;
            this.label4.Text = "Псевдо график \r\nтемператур";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(365, 53);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(73, 13);
            this.label3.TabIndex = 5;
            this.label3.Text = "Min t C° печи:";
            // 
            // button1
            // 
            this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.button1.Image = global::TempFromMaisToMagnesius.Properties.Resources.calculator;
            this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.button1.Location = new System.Drawing.Point(187, 156);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(124, 85);
            this.button1.TabIndex = 4;
            this.button1.Text = "Расчет =>";
            this.button1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            // 
            // listBox1
            // 
            this.listBox1.FormattingEnabled = true;
            this.listBox1.Items.AddRange(new object[] {
            "1130",
            "1120",
            "800",
            "600",
            "400",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "400",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "400",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "400",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "400",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "400",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "400",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "400",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "800",
            "600",
            "300",
            "400",
            "600",
            "800",
            "1000",
            "1100",
            "1110",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1140",
            "1150",
            "1130",
            "1140",
            "1150",
            "1160",
            "1150",
            "1130",
            "1140",
            "1120",
            "1130",
            "1120",
            "1140",
            "1150",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120",
            "1140",
            "1120",
            "1130",
            "1120",
            "1130",
            "1140",
            "1150",
            "1130",
            "1120"});
            this.listBox1.Location = new System.Drawing.Point(9, 48);
            this.listBox1.Name = "listBox1";
            this.listBox1.Size = new System.Drawing.Size(74, 199);
            this.listBox1.TabIndex = 2;
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Dock = System.Windows.Forms.DockStyle.Right;
            this.label2.ForeColor = System.Drawing.SystemColors.AppWorkspace;
            this.label2.Location = new System.Drawing.Point(869, 16);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(35, 13);
            this.label2.TabIndex = 1;
            this.label2.Text = "label2";
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.display);
            this.groupBox2.Dock = System.Windows.Forms.DockStyle.Left;
            this.groupBox2.Location = new System.Drawing.Point(0, 254);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(653, 379);
            this.groupBox2.TabIndex = 2;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "График";
            // 
            // timer1
            // 
            this.timer1.Enabled = true;
            this.timer1.Interval = 500;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            // 
            // dataGridView1
            // 
            this.dataGridView1.AllowUserToAddRows = false;
            this.dataGridView1.AllowUserToDeleteRows = false;
            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.dataGridView1.EnableHeadersVisualStyles = false;
            this.dataGridView1.Location = new System.Drawing.Point(3, 16);
            this.dataGridView1.Name = "dataGridView1";
            this.dataGridView1.ReadOnly = true;
            this.dataGridView1.Size = new System.Drawing.Size(313, 360);
            this.dataGridView1.TabIndex = 3;
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.dataGridView1);
            this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
            this.groupBox3.Location = new System.Drawing.Point(653, 254);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(319, 379);
            this.groupBox3.TabIndex = 4;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Таблица значений температур:";
            // 
            // display
            // 
            this.display.BackColor = System.Drawing.Color.White;
            this.display.BackgroundColorBot = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
            this.display.BackgroundColorTop = System.Drawing.Color.Navy;
            this.display.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.display.DashedGridColor = System.Drawing.Color.Blue;
            dataSource2.AutoScaleX = false;
            dataSource2.AutoScaleY = false;
            dataSource2.GraphColor = System.Drawing.Color.Black;
            dataSource2.Length = 4;
            this.display.DataSources.Add(dataSource2);
            this.display.Dock = System.Windows.Forms.DockStyle.Fill;
            this.display.DoubleBuffering = true;
            this.display.Location = new System.Drawing.Point(3, 16);
            this.display.Name = "display";
            this.display.PanelVisible = true;
            this.display.PlaySpeed = 0.01F;
            this.display.Size = new System.Drawing.Size(647, 360);
            this.display.SolidGridColor = System.Drawing.Color.Blue;
            this.display.TabIndex = 1;
            this.display.Load += new System.EventHandler(this.display_Load);
            // 
            // UserControl1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.groupBox3);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.Name = "UserControl1";
            this.Size = new System.Drawing.Size(972, 633);
            this.Load += new System.EventHandler(this.UserControl1_Load);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
            this.groupBox3.ResumeLayout(false);
            this.ResumeLayout(false);

        }
Пример #4
0
 private String RenderYLabel(GraphLib.DataSource s, float value)
 {
     return(String.Format("{0:0.0}", value));
 }