コード例 #1
0
 protected virtual void OnSaveQuickFilter(object sender, System.EventArgs e)
 {
     AddBookMarkDialog dlg = new AddBookMarkDialog ();
     dlg.Title = Catalog.GetString ("Save QuickFilter");
     if (((int)ResponseType.Ok) == dlg.Run ()) {
         QuickFilter filter = new QuickFilter ();
         filter.AdvancedFilters = m_app.CacheStore.AdvancedFilters;
         if (m_app.CacheStore.CombinationFilter != null)
             filter.ComboFilter = new List<FilterList>(m_app.CacheStore.CombinationFilter);
         filter.Name = dlg.BookmarkName;
         CacheList.PopulateQuickFilter(filter);
         m_app.QuickFilterList.AddFilter (filter);
         RebuildQuickFilters();
     }
 }
コード例 #2
0
 public void AddBookmark()
 {
     AddBookMarkDialog dlg = new AddBookMarkDialog();
     if ((int)ResponseType.Ok == dlg.Run())
     {
         m_app.CacheStore.AddBookmarkList(dlg.BookmarkName);
         RebuildBookmarks();
     }
 }