コード例 #1
0
 private void создатьСписокToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Remove_All();
     N_Label.Visible = true;
     N_Input.Visible = true;
     N_Input.Focus();
 }
コード例 #2
0
        //изменился масштаб отображения на графике
        private void chart1_AxisViewChanged(object sender, ViewEventArgs e)
        {
            int start = (int)chart1.ChartAreas[0].AxisX.ScaleView.ViewMinimum;

            if (double.IsNaN(chart1.ChartAreas[0].AxisX.ScaleView.Size))
            {
                comboBox1.Text = N_Input.ToString();
            }
            else
            {
                comboBox1.Text       = (chart1.ChartAreas[0].AxisX.ScaleView.Size + 1).ToString();
                hScrollBar2.Value    = (int)chart1.ChartAreas[0].AxisX.ScaleView.Size + 1;
                hScrollBar1.Value    = start;
                numericUpDown2.Value = start;
            }
        }