예제 #1
0
 private void EditForm_Load(object sender, EventArgs e)
 {
     MainForm mainForm = new MainForm();
     city = this.mainForm.city;
     population = this.mainForm.population;
     oldCityTextBox.Text = city;
     string pop = this.mainForm.population.ToString();
     decimal convertedPopulation = Decimal.Parse(pop, System.Globalization.NumberStyles.Float);
     oldPopulationTextBox.Text = convertedPopulation.ToString();
 }
예제 #2
0
 public EditForm(MainForm form)
 {
     this.mainForm = form;
     InitializeComponent();
 }