Ejemplo n.º 1
0
 private void biTBSearch_Click(object sender, EventArgs e)
 {
     if (txtTBSearch.ControlText.Length == 0) return;
     List<ProjectListManager> managers = new List<ProjectListManager>();
     managers.Add(Active);
     managers.Add(Waiting);
     managers.Add(Archive);
     SortedList<SearchRank, Project> lst = Search.SearchAll(managers, txtTBSearch.ControlText);
     SearchResultsForm frm = new SearchResultsForm();
     frm.Results = lst;
     frm.Highlighted = txtTBSearch.ControlText;
     frm.ShowDialog();
     //set the focus back?
     txtTBSearch.Focus();
 }
Ejemplo n.º 2
0
        private void biTBSearch_Click(object sender, EventArgs e)
        {
            if (txtTBSearch.ControlText.Length == 0)
            {
                return;
            }
            List <ProjectListManager> managers = new List <ProjectListManager>();

            managers.Add(Active);
            managers.Add(Waiting);
            managers.Add(Archive);
            SortedList <SearchRank, Project> lst = Search.SearchAll(managers, txtTBSearch.ControlText);
            SearchResultsForm frm = new SearchResultsForm();

            frm.Results     = lst;
            frm.Highlighted = txtTBSearch.ControlText;
            frm.ShowDialog();
            //set the focus back?
            txtTBSearch.Focus();
        }