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(); }