示例#1
0
 private void btnAddRace_Click(object sender, EventArgs e)
 {
     Race newRace = new Race();
     newRace.name = "newRace";
     newRace.tag = "newRace_" + prntForm.mod.nextIdNumber.ToString();
     prntForm.racesList.Add(newRace);
     fillAllowedTraitList();
     refreshListBox();
 }
示例#2
0
 private bool raceExists(Race itImp)
 {
     foreach (Race it in prntForm.racesList)
     {
         if (it.tag == itImp.tag)
         {
             return true;
         }
     }
     return false;
 }