public override void Execute(object parameter = null) { if (parameter is Fluent.ToggleButton) { ToggleButton = (ToggleButton)parameter; } if (!CommandLogger.LoggingStarted) { CommandLogger.StartLogging(); } else { CommandLogger.ContinueLogging(); } }