Exemplo n.º 1
0
 private void SearchId(object sender, EventArgs e)
 {
     if (Utils.ConvertStringToInt(textBoxGraphic.Text, out int graphic, 0, Ultima.Art.GetMaxItemID()))
     {
         if (!Gump.Search(graphic))
         {
             DialogResult result = MessageBox.Show("No used index found", "Result",
                                                   MessageBoxButtons.OKCancel, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
             if (result == DialogResult.Cancel)
             {
                 Close();
             }
         }
     }
 }