public MainViewModelCommand(ConnectionProperties connectionProperties, IPlayerViewModel playerViewModel, IFactionViewModel factionViewModel, IUserViewModel userViewModel) { _connectionProperties = connectionProperties; PlayerViewModel = playerViewModel; FactionViewModel = factionViewModel; UserViewModel = userViewModel; _showRegisterNewUserWindowCommand = new RelayCommand(ShowRegisterNewUserWindow); _showPlayersWindowCommand = new RelayCommand(ShowPlayersWindow); _showFactionsWindowCommand = new RelayCommand(ShowFactionsWindow); _showAuthOptionsWindowCommand = new RelayCommand(ShowAuthOptionsWindow); _exitCommand = new RelayCommand(Exit); }
//private IWindow _window; //private ConnectionProperties _connectionProperties; //public IPlayerViewModel PlayerViewModel { get; } //public IFactionViewModel FactionViewModel { get; } public MainViewModel(ConnectionProperties connectionProperties, IPlayerViewModel playerViewModel, IFactionViewModel factionViewModel, IUserViewModel userViewModel) : base(connectionProperties, playerViewModel, factionViewModel, userViewModel) { //_connectionProperties = connectionProperties; //PlayerViewModel = playerViewModel; //FactionViewModel = factionViewModel; }