public MainWindow() { _controller = new MainLogicController(LogicSettings.ConstructFromSettings(Settings), Dispatcher); DataContext = _controller; InitializeComponent(); GameSelector.ItemsSource = GamesHelper.GetListOfSupportedGames(); GameSelector.SelectedValue = Settings.SelectedGameName; }
public MainWindow() { this._controller = new MainLogicController(Settings, this.Dispatcher); this.DataContext = this._controller; this.InitializeComponent(); if (this._controller.PatternController.Canvas != null) { this.PatternControl.Children.Add(this._controller.PatternController.Canvas); } }
public MainWindow() { _controller = new MainLogicController(Settings.DeltaX, Settings.DeltaY, Settings.SensitivityScale, Settings.UseUniqueWeaponLogic); DataContext = _controller; InitializeComponent(); }