protected override Task OnLoaded() { this.boardSizes.Add(new InteractiveBoardSize() { Name = "Large", Width = LargeWidth, Height = LargeHeight }); this.boardSizes.Add(new InteractiveBoardSize() { Name = "Medium", Width = MediumWidth, Height = MediumHeight }); this.boardSizes.Add(new InteractiveBoardSize() { Name = "Small", Width = SmallWidth, Height = SmallHeight }); this.selectedBoardSize = this.boardSizes.First(); this.SceneComboBox.ItemsSource = this.scenes; this.BoardSizeComboBox.ItemsSource = this.boardSizes; this.SceneComboBox.SelectedIndex = 0; this.BoardSizeComboBox.SelectedIndex = 0; this.GameNameTextBox.Text = this.gameListing.name; return(base.OnLoaded()); }
private void BoardSizeComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.selectedScene != null && this.BoardSizeComboBox.SelectedIndex >= 0) { this.selectedBoardSize = (InteractiveBoardSize)this.BoardSizeComboBox.SelectedItem; this.RefreshScene(); } }