コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: milotiger/Gomoku
 private void ModePicking()
 {
     ModePicker modePicker = new ModePicker() { WindowStartupLocation = WindowStartupLocation.CenterScreen };
     if (modePicker.ShowDialog() == true)
     {
         Board.CurrentMode = modePicker.Mode;
         MyName = modePicker.MyName;
         NameTb.Text = MyName;
         this.Title = "Gomoku" + " - " + Board.CurrentMode.ToString();
     }
     //GameInit();
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: milotiger/Gomoku
        private void ModePicking()
        {
            ModePicker modePicker = new ModePicker()
            {
                WindowStartupLocation = WindowStartupLocation.CenterScreen
            };

            if (modePicker.ShowDialog() == true)
            {
                Board.CurrentMode = modePicker.Mode;
                MyName            = modePicker.MyName;
                NameTb.Text       = MyName;
                this.Title        = "Gomoku" + " - " + Board.CurrentMode.ToString();
            }
            //GameInit();
        }