Ejemplo n.º 1
0
        private void SearchNextName(object sender, EventArgs e)
        {
            bool res = LandTilesControl.SearchName(textBoxItemName.Text, true);

            if (res)
            {
                return;
            }

            DialogResult result = MessageBox.Show(
                "No landtile found",
                "Result",
                MessageBoxButtons.OKCancel,
                MessageBoxIcon.Error,
                MessageBoxDefaultButton.Button1);

            if (result == DialogResult.Cancel)
            {
                Close();
            }
        }
Ejemplo n.º 2
0
        private void SearchName(object sender, EventArgs e)
        {
            _lastSearchedName = textBoxItemName.Text;
            bool res = Options.DesignAlternative
                ? LandTilesAlternativeControl.SearchName(textBoxItemName.Text, false)
                : LandTilesControl.SearchName(textBoxItemName.Text, false);

            if (res)
            {
                return;
            }

            DialogResult result = MessageBox.Show(
                "No landtile found",
                "Result",
                MessageBoxButtons.OKCancel,
                MessageBoxIcon.Error,
                MessageBoxDefaultButton.Button1);

            if (result == DialogResult.Cancel)
            {
                Close();
            }
        }