Exemple #1
0
 private void CheckBox1_CheckedChanged(object sender, EventArgs e)
 {
     parametr.Flag          = this.checkBox1.Checked ? 1 : 2;
     this.trackBar1.Enabled = !this.checkBox1.Checked;
     this.textBox1.Enabled  = !this.checkBox1.Checked;
     OnParametrEvent?.Invoke(parametr, index);
 }
Exemple #2
0
 private void TrackBar1_ValueChanged(object sender, EventArgs e)
 {
     if (this.textBox1.Text != this.trackBar1.Value.ToString())
     {
         this.textBox1.Text = this.trackBar1.Value.ToString();
     }
     if (parametr.CurrentValue != this.trackBar1.Value)
     {
         parametr.CurrentValue = this.trackBar1.Value;
         OnParametrEvent?.Invoke(parametr, index);
     }
 }