SearchName() public static method

public static SearchName ( string name, bool next, bool land ) : bool
name string
next bool
land bool
return bool
Beispiel #1
0
        private void SearchNextName(object sender, EventArgs e)
        {
            bool res = TileDatas.SearchName(textBoxItemName.Text, true, land);

            if (!res)
            {
                DialogResult result = MessageBox.Show("No item found", "Result", MessageBoxButtons.OKCancel, MessageBoxIcon.Error, MessageBoxDefaultButton.Button2);
                if (result == DialogResult.Cancel)
                {
                    Close();
                }
            }
        }