예제 #1
0
        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();
            }
        }
예제 #2
0
        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();
            }
        }