Reputation: 33048
Is there a special trick required to get BooleanElement's
ValueChanged
event firing?
The code below is never executed if I switch the status:
this.oElementSenderCC = new BooleanElement ("Send Copy To Myself" ), true);
this.oElementSenderCC.ValueChanged += (sender, e) => this.SelectedSenderCC = this.oElementSenderCC.Value;
Upvotes: 1
Views: 805
Reputation: 1594
this seems working for me
BooleanElement boolElm = new BooleanElement("Bool",false);
boolElm.ValueChanged+=delegate
{ Console.WriteLine(boolElm.Value); };
Upvotes: 2