using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Gin_Rummy_GUI; namespace Input_Dialog_GUI { public partial class InputDialogForm : Form { private int nPlayers=2; private string playerName=null; public InputDialogForm() { InitializeComponent(); } private void acceptButton_Click(object sender, EventArgs e) { nPlayers = (int) (nPlayerControl.Value); playerName = playerNameTextBox.Text; //GinRummyForm form = new GinRummyForm(nPlayers, playerName, this); GinRummyForm form = new GinRummyForm(); form.Show(); Visible = false; } } }