public Form2()
 {
     InitializeComponent();
     this.MouseWheel += new MouseEventHandler(Form2_MouseWheel);
     EnableClusterPainting = false;
     mousex = 0;
     mousey = 0;
     label2.BackColor = Color.Transparent;
     moving = false;
     comboBox1.SelectedIndex = 0;
     comboBox2.SelectedIndex = 0;
     movestart = new PointF();
     ParScroll = new Form3();
     kstring = textBox1.Text;
     lstring = textBox2.Text;
     limit = Convert.ToInt32(lstring);
     if (Form1.usertxtentered)
     {
         comboBox2.Items.Add("Пользовательские данные ");
     }
 }
 private void button2_Click_1(object sender, EventArgs e)
 {
     if (ParScroll.Shw)
     {
         ParScroll.PCevent += new ParameterChangedEvents(this.UpdateParameter);
         ParScroll.Activate();
         ParScroll.WindowState = FormWindowState.Normal;
     }
     else
     {
         ParScroll = new Form3();
         ParScroll.K = Convert.ToDouble(textBox1.Text);
         ParScroll.PCevent += new ParameterChangedEvents(this.UpdateParameter);
         ParScroll.Show();
         ParScroll.Shw = true;
     }
 }