private void AddSet_Click(object sender, EventArgs e) { LevelForm levelForm = new LevelForm(Session.Project.Party.Level); if (levelForm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { List <Parcel> parcels = Treasure.CreateParcelSet(levelForm.Level, Session.Project.Party.Size, true); Session.Project.TreasureParcels.AddRange(parcels); Session.Modified = true; this.update_list(); } }
private void AddSet_Click(object sender, EventArgs e) { LevelForm dlg = new LevelForm(Session.Project.Party.Level); if (dlg.ShowDialog() == DialogResult.OK) { List <Parcel> list = Treasure.CreateParcelSet(dlg.Level, Session.Project.Party.Size, true); Session.Project.TreasureParcels.AddRange(list); Session.Modified = true; update_list(); } }