SearchGraphic() public static method

public static SearchGraphic ( int graphic, bool land ) : bool
graphic int
land bool
return bool
Beispiel #1
0
        private void SearchGraphic(object sender, EventArgs e)
        {
            int graphic;

            if (Utils.ConvertStringToInt(textBoxGraphic.Text, out graphic, 0, (land ? Ultima.Art.LandLength : Ultima.Art.StaticLength) - 1))
            {
                bool res = TileDatas.SearchGraphic(graphic, land);
                if (!res)
                {
                    DialogResult result = MessageBox.Show("No item found", "Result", MessageBoxButtons.OKCancel, MessageBoxIcon.Error, MessageBoxDefaultButton.Button2);
                    if (result == DialogResult.Cancel)
                    {
                        Close();
                    }
                }
            }
        }