public ConnectingViewModel(IForegroundUpdateService foregroundUpdateService, ISocketConnection socketConnection) { _connection = socketConnection; foregroundUpdateService.OnRegistrationStatusUpdated += OnRegistrationStatusUpdated; ConnectCommand = new DelegateCommand(OnConnectCommandExecute, OnConnectCommandCanExecute); ShowSettings = new DelegateCommand(() => OnShowSettings?.Invoke()); UpdateStatus(); }