Exemple #1
0
        private void Vals_Updated(object sender, string e)
        {
            ValueGen vg = (ValueGen)sender;

            this.UIThread(() => this.textBox1.Text = vg.val1.ToString());
            this.UIThread(() => this.textBox2.Text = vg.val2.ToString());
        }
Exemple #2
0
 public Form1()
 {
     InitializeComponent();
     vals          = new();
     vals.Updated += Vals_Updated;
 }