void GenSystemButton_Click(object sender, EventArgs e) { Dialogs.InputBasic InpuDialog = new Dialogs.InputBasic("Enter Seed", "Enter System Seed", "-1"); InpuDialog.ShowDialog(); if (InpuDialog.DialogResult == DialogResult.OK) { m_iNumberOfNewSystemsGened++; GameState.Instance.StarSystems.Add(GameState.Instance.StarSystemFactory.Create("Gened System " + m_iNumberOfNewSystemsGened.ToString(), InpuDialog.InputInt)); } // cleanup input box: InpuDialog.Close(); }
void GenSystemButton_Click(object sender, EventArgs e) { Dialogs.InputBasic InpuDialog = new Dialogs.InputBasic("Enter Seed", "Enter System Seed", "-1"); InpuDialog.ShowDialog(); if (InpuDialog.DialogResult == DialogResult.OK) { m_iNumberOfNewSystemsGened++; SystemGen.CreateSystem("Gened System " + m_iNumberOfNewSystemsGened.ToString(), InpuDialog.InputInt); } // cleanup input box: InpuDialog.Close(); }