// We add this to our window as a callback public void OnWindowClosed(object sender, EventArgs e) { // _logger.Trace( "OnWindowClosed" ); if (_button != null) { _button.SetOff( ); } UpdateVisibility(false); }
/// <summary> /// Force button to off state /// </summary> public void SetOff( ) { _button.SetOff( ); }