Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
        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();
        }