Exemplo n.º 1
0
        private void displaySearch_Click(object sender, EventArgs e)
        {
            h      = new EventFrameSearch(this, db);
            search = (OSIsoft.AF.UI.PropertyPage.EventFrameSearchPage)h.Controls["eventFrameSearchPage"];
            //search.EventFrameCriteria.RestoreCriteria(calculationName.Text);
            //search.EventFrameCriteria.LastFullSearchString = queryTextBox.Text;*/
            search.CriteriaInitiallyOpened = true;
            OSIsoft.AF.Search.AFEventFrameSearch query = new OSIsoft.AF.Search.AFEventFrameSearch(db, "search", queryTextBox.Text);
            //OSIsoft.AF.UI.PropertyPage.EventFrameSearchPage search = (OSIsoft.AF.UI.PropertyPage.EventFrameSearchPage)h.Controls["eventFrameSearchPage"];
            AFEventFrameCriteria criteria = queryToCriteria(query);

            search.EventFrameCriteria = criteria;
            //refreshSearchWindow();
            // TODO, try and find the control that shows or doesn't show a certain value filter
            h.Show();
        }
Exemplo n.º 2
0
 private void refreshSearchWindow()
 {
     h = new EventFrameSearch(this, db);
     search.CriteriaInitiallyOpened = true;
 }