public void Execute(KLogger k) { Signal.RefreshFromDatabase(k); switch (command) { case LoggerCommands.StartLogger: k.Start(); k.enabled = true; Signal.Update(k); break; case LoggerCommands.StopLogger: k.Stop(); k.enabled = false; Signal.Update(k); break; } }