Exemplo n.º 1
0
        private void ShowFilterDialog()
        {
            Utils.Log.Debug("Showing filter dialog");
            FilterDialog f = new FilterDialog(this, _fb);
            f.LoadModel(_filter);
            if (f.ShowDialog() == DialogResult.OK)
            {
                _filter = f.SaveModel();
                _filter.History.PushSearch(_filter.UserSearch);
                if (_filter.Cases != null)
                    updateCaseDropdown(_filter.Cases);
                else
                    updateCases();

                _filter.History.Save();
            }
            Utils.Log.Debug("Closing filter dialog");
        }
Exemplo n.º 2
0
 private void ShowFilterDialog()
 {
     var f = new FilterDialog(_history)
                 {
                     fb = _fb,
                     dad = this,
                     UserSearch = _narrowSearch,
                     BaseSearch = _baseSearch,
                     IncludeNoEstimate = _includeNoEstimate,
                     IgnoreBaseSearch = _ignoreBaseSearch
                 };
     if (f.ShowDialog() != DialogResult.OK) return;
     _narrowSearch = f.UserSearch;
     _ignoreBaseSearch = f.IgnoreBaseSearch;
     _includeNoEstimate = f.IncludeNoEstimate;
     if (f.Cases != null)
         updateCaseDropdown(f.Cases);
     else
         updateCases();
     _history.Save();
 }