private void panelView_MouseEnter(object sender, EventArgs e)
 {
     panelView.Select();
     try
     {
         if (prntForm.selectedLevelMapCreatureTag != "")
         {
             prntForm.CreatureSelected = true;
         }
         if (prntForm.selectedLevelMapPropTag != "")
         {
             prntForm.PropSelected = true;
         }
         if (prntForm.CreatureSelected)
         {
             string selectedCrt = prntForm.selectedEncounterCreatureTag;
             le_selectedCreature = prntForm.getCreatureByTag(selectedCrt);
             if (le_selectedCreature != null)
             {
                 selectedBitmap = le_selectedCreature.creatureIconBitmap;
                 //selectedBitmapSize = le_selectedCreature.Size;
             }
         }
         else if (prntForm.PropSelected)
         {
             string selectedProp = prntForm.selectedLevelMapPropTag;
             le_selectedProp = prntForm.getPropByTag(selectedProp);
             if (le_selectedProp != null)
             {
                 selectedBitmap = le_selectedProp.propBitmap;
                 //selectedBitmapSize = le_selectedProp.propBitmap.Width / (tileSize * 2);
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("failed on mouse enter map: " + ex.ToString());
     }
 }
 private void btnAddCreature_Click_1(object sender, EventArgs e)
 {
     Creature newCreature = new Creature();
     newCreature.cr_parentNodeName = "New Category";
     newCreature.cr_tag = "newTag_" + prntForm.mod.nextIdNumber;
     prntForm.nodeCount++;
     prntForm.creaturesList.Add(newCreature);
     UpdateTreeViewCreatures();
 }
 private bool creatureExists(Creature itImp)
 {
     foreach (Creature it in prntForm.creaturesList)
     {
         if (it.cr_resref == itImp.cr_resref)
         {
             return true;
         }
     }
     return false;
 }