Exemplo n.º 1
0
 public override void Execute(object parameter = null)
 {
     if (parameter is Fluent.ToggleButton)
     {
         ToggleButton = (ToggleButton)parameter;
     }
     if (CommandLogger.LoggingStarted)
     {
         CommandLogger.PauseLogging();
         if (parameter is Fluent.ToggleButton)
         {
             ((Fluent.ToggleButton)parameter).IsChecked = true;
         }
     }
     else
     {
         CommandLogger.ContinueLogging();
         if (parameter is Fluent.ToggleButton)
         {
             ((Fluent.ToggleButton)parameter).IsChecked = false;
         }
     }
 }