Пример #1
0
 private void AssositeButtonOnCheckChanged(object sender, CheckChangedEventArgs e)
 {
     this.on = e.Checked;
     this.Invalidate();
 }
Пример #2
0
 protected virtual void OnCheckChanged(CheckChangedEventArgs args)
 {
     EventHandler<CheckChangedEventArgs> handler = base.Events[EventCheckChanged] as EventHandler<CheckChangedEventArgs>;
     if (handler != null)
     {
         handler(this, args);
     }
 }