Exemplo n.º 1
0
 private void btnSelectIcon_Click(object sender, EventArgs e)
 {
     try
     {
         if (prntForm.frmBlueprints.tabCreatureItem.SelectedIndex == 0) //creature
         {
             prntForm.LoadCreatureSprite();
         }
         else if (prntForm.frmBlueprints.tabCreatureItem.SelectedIndex == 1) //item
         {
             prntForm.LoadItemIcon();
         }
         else //prop
         {
             prntForm.LoadPropSprite();
         }
     }
     catch
     {
         MessageBox.Show("failed to load sprite...make sure to select a creature, item, or prop just before clicking this button.");
     }
 }