private void button1_Click(object sender, EventArgs e) { Form5 f5 = new Form5(); Deer temp = cus.getDeer(); temp.setWeight(Convert.ToDouble(Weight.Text)); cus.setDeer(temp); this.Hide(); XMLwriter.write(cus); f5.Show(); }
private void button1_Click(object sender, EventArgs e) { Form5 f5 = new Form5(); int points = Int32.Parse(POINTS.Text); double spread = Convert.ToDouble(SPREAD.Text); double beam = Convert.ToDouble(BEAM.Text); double weight = Convert.ToDouble(WEIGHT.Text); Deer buck = new Buck(points, spread, beam); buck.setWeight(weight); cus.setDeer(buck); XMLwriter.write(cus); this.Hide(); f5.Show(); }