public GameserverViewModel(Gameserver gameserver) { _gameserver = gameserver; ViewModelLoopTask(() => { OnPropertyChanged(nameof(Status)); OnPropertyChanged(nameof(IsRunning)); OnPropertyChanged(nameof(IsInstalled)); Console.WriteLine("test"); }, 250); StartCommand = new CommandImplementation(o => Start()); StopCommand = new CommandImplementation(o => Stop()); RestartCommand = new CommandImplementation(o => Restart()); KillCommand = new CommandImplementation(o => Kill()); DeleteCommand = new CommandImplementation(o => Delete()); InstallCommand = new CommandImplementation(o => Install()); UninstallCommand = new CommandImplementation(o => Uninstall()); ReinstallCommand = new CommandImplementation(o => Reinstall()); WipeMapCommand = new CommandImplementation(o => WipeMap()); WipeBPCommand = new CommandImplementation(o => WipeMapAndBP()); }
public GameserverViewModel() { _gameserver = new Gameserver(); StartCommand = new CommandImplementation(o => Start()); StopCommand = new CommandImplementation(o => Stop()); RestartCommand = new CommandImplementation(o => Restart()); KillCommand = new CommandImplementation(o => Kill()); DeleteCommand = new CommandImplementation(o => Delete()); InstallCommand = new CommandImplementation(o => Install()); UninstallCommand = new CommandImplementation(o => Uninstall()); ReinstallCommand = new CommandImplementation(o => Reinstall()); WipeMapCommand = new CommandImplementation(o => WipeMap()); WipeBPCommand = new CommandImplementation(o => WipeMapAndBP()); }