コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();

            this.Title = "Tic Tac Toe Ultimate Edition";
            this.ResizeMode = ResizeMode.NoResize;
            this.WindowStyle = WindowStyle.None;
            this.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            GameFlow gf = new GameFlow(this);
        }
コード例 #2
0
        public GameSettings(GameFlow gf)
        {
            this.InitializeComponent();
            this.gf = gf;

            initializeMusic();
            SdrMusic.Value = gf.Media.Volume;

            Debug.WriteLine("***GameFlow p1 fisrt: " + GameFlow.P1First);

            if (GameFlow.P1First)
                rdPlayerSettings.IsChecked = GameFlow.P1First;
            else
                rdPlayer2Settings.IsChecked = !GameFlow.P1First;

            rdPlayerSettings.Checked += rdPlayerSettings_Checked;
            rdPlayer2Settings.Checked += rdPlayerSettings_Checked;
            cmbMusic.SelectionChanged += cmbMusic_SelectionChanged;
        }
コード例 #3
0
 public GameTutorial(GameFlow gf)
 {
     InitializeComponent();
     this.gf = gf;
 }