Example #1
0
        public KickPlayerWindow(IBanHelper playerHelper, Guid serverId, int playerNum, string playerGuid, string playerName, ISettingsStoreSource settingsStoreSource) : base(settingsStoreSource)
        {
            _playerHelper = playerHelper;
            _serverId     = serverId;
            _playerNum    = playerNum;
            _playerGuid   = playerGuid;
            InitializeComponent();

            var model = new KickPlayerViewModel(playerName);

            DataContext = model;
        }
Example #2
0
        public KickPlayerWindow(IBanHelper playerHelper, Guid serverId, int playerNum, string playerGuid, string playerName)
        {
            _playerHelper = playerHelper;
            _serverId     = serverId;
            _playerNum    = playerNum;
            _playerGuid   = playerGuid;
            InitializeComponent();

            Model = new KickPlayerViewModel(playerName);

            DataContext = Model;
        }