Exemplo n.º 1
0
        private void Search_Click(object sender, EventArgs e)
        {
            if (SearchOption.SelectedItem == null)
            {
                return;
            }

            try
            {
                remoteTree.Nodes.Clear();
                remoteTree.Nodes.Add(brwApp.search(SearchBox.Text, SearchOption.SelectedItem.ToString()));
                remoteTree.ExpandAll();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error " + " has occurred: " + ex.Message,
                                "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }