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