Esempio n. 1
0
 /// <summary>Prepare the object for the next group SizeChanged events</summary>
 /// <param name="info">The button info object to reconnect event handlers</param>
 private void PrepForChange(ButtonEventInfo info)
 {
     info.ButtonObj.SizeChanged -= this.SizeChangedHandler;
     info.ButtonObj.SizeChanged += this.SizeChangedHandler;
 }
Esempio n. 2
0
 /// <summary>Resets values if the set is SizeChanged group is done</summary>
 /// <param name="info">The button info object to reset as well as the event handler</param>
 private void OnSizeChanged(ButtonEventInfo info)
 {
     info.ResetSized();
     info.ButtonObj.SizeChanged -= this.SizeChangedHandler;
 }