Пример #1
0
 private void GraphViewer_Load(object sender, EventArgs e)
 {
     tb_TimeRange.Text    = TimeRange.ToString();
     tb_Xmin.Text         = Xmin.ToString();
     tb_Xmax.Text         = Xmax.ToString();
     tb_Ymin.Text         = Ymin.ToString();
     tb_Ymax.Text         = Ymax.ToString();
     chbox_swapXY.Checked = SwapXY;
 }
Пример #2
0
 public Form1()
 {
     InitializeComponent();
     flag          = false;
     graphics      = pictureBox1.CreateGraphics();
     Xmin          = 0.2; Xmax = 8.2; Ymin = 0.5; Ymax = 6.5;
     textBox1.Text = Xmin.ToString();
     textBox2.Text = Xmax.ToString();
     textBox3.Text = Ymin.ToString();
     textBox4.Text = Ymax.ToString();
 }
Пример #3
0
 public Form1()
 {
     InitializeComponent();
     Xmin          = 0.2; Xmax = 8.2; Ymin = 0.5; Ymax = 6.5;
     textBox1.Text = Xmin.ToString();
     textBox2.Text = Ymin.ToString();
     textBox3.Text = Xmax.ToString();
     textBox4.Text = Ymax.ToString();
     dc            = pictureBox1.CreateGraphics();
     p             = new Pen(Brushes.Black, 1);
 }
Пример #4
0
 public Form1()
 {
     InitializeComponent();
     /* Задание границ области вывода по умолчанию */
     Xmin          = 0.2; Xmax = 8.2; Ymin = 0.5; Ymax = 6.5;
     textBox1.Text = Xmin.ToString();
     textBox2.Text = Ymin.ToString();
     textBox3.Text = Xmax.ToString();
     textBox4.Text = Ymax.ToString();
     dc            = pictureBox1.CreateGraphics();
     p             = new Pen(Brushes.Black, 1);
 }
Пример #5
0
 public override string ToString()
 {
     System.Text.StringBuilder sb = new System.Text.StringBuilder(200);
     sb.AppendFormat("[Table2D @ {0:X6} | Selected={1} Count={2} Type={3} | RangeX={4}, RangeY={5} | xMin={6} xMax={7} | yMin={8} yMax={9} yAvg={10}",
                     location, selected, CountX, TableType.ToStr(),
                     rangeX.ToString(), rangeY.ToString(),
                     Xmin.ToString(), Xmax.ToString(),
                     Ymin.ToString(), Ymax.ToString(), Yavg.ToString());
     if (hasMAC)
     {
         sb.AppendFormat(" | Multiplier={0}, Offset={1}]", Multiplier, Offset);
     }
     else
     {
         sb.Append("]");
     }
     return(sb.ToString());
 }
Пример #6
0
 public override string ToString()
 {
     return(Xmin.ToString("F2") + " ~ " + Xmax.ToString("F2") + ", " + Ymin.ToString("F2") + " ~ " + Ymax.ToString("F2"));
 }