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