Esempio n. 1
0
 public override void Execute(object parameter = null)
 {
     if (parameter is Fluent.ToggleButton)
     {
         ToggleButton = (ToggleButton)parameter;
     }
     if (!CommandLogger.LoggingStarted)
     {
         CommandLogger.StartLogging();
     }
     else
     {
         CommandLogger.ContinueLogging();
     }
 }
Esempio n. 2
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;
         }
     }
 }