private void buttonStart_Click(object sender, EventArgs e) { if (!radioSingle.Checked && !radioDouble.Checked && !radioClient.Checked && !radioServer.Checked) { MessageBox.Show("Выберете режим подключения!", "Ошибка"); return; } Labirint labirint = null; if (radioSingle.Checked) labirint = new Labirint(); if (radioDouble.Checked) labirint = new Labirint(2); if (radioServer.Checked) labirint = new Labirint(textPort.Text); if (radioClient.Checked) labirint = new Labirint(textHost.Text, textPort.Text); labirint.OpenLevel(1); labirint.ShowDialog(); }
private void buttonStart_Click(object sender, EventArgs e) { Labirint labirint = new Labirint(); labirint.OpenLevel(1); labirint.ShowDialog(); }