示例#1
0
 public MainWindow()
 {
     _controller = new MainLogicController(LogicSettings.ConstructFromSettings(Settings), Dispatcher);
     DataContext = _controller;
     InitializeComponent();
     GameSelector.ItemsSource   = GamesHelper.GetListOfSupportedGames();
     GameSelector.SelectedValue = Settings.SelectedGameName;
 }
示例#2
0
 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);
     }
 }
示例#3
0
 public MainWindow()
 {
     _controller = new MainLogicController(Settings.DeltaX, Settings.DeltaY, Settings.SensitivityScale, Settings.UseUniqueWeaponLogic);
     DataContext = _controller;
     InitializeComponent();
 }