protected virtual void OnImportQuickFilter(object sender, System.EventArgs e)
        {
            DeleteItem dlg = new DeleteItem(m_Win.App.QuickFilterList, true);

            dlg.Title  = Catalog.GetString("Import Quick Filter");
            dlg.Icon   = this.Icon;
            dlg.Parent = this;
            if ((int)ResponseType.Ok == dlg.Run())
            {
                QuickFilter qf = m_Win.App.QuickFilterList.GetFilter(dlg.ItemToDelete);
                ImportQuickFilter(qf);
            }
        }
        public void DeleteGPSProfile()
        {
            DeleteItem dlg = new DeleteItem (m_app.Profiles);
            if ((int)ResponseType.Ok == dlg.Run ()) {
                if ((m_app.Profiles.GetActiveProfile () != null) && (dlg.ItemToDelete == m_app.Profiles.GetActiveProfile ().Name)) {
                    MessageDialog confirm = new MessageDialog (this, DialogFlags.Modal, MessageType.Warning, ButtonsType.YesNo, Catalog.GetString ("\"{0}\" is the active" + " GPS profile. Are you sure you wish to delete it?"), dlg.ItemToDelete);
                    if ((int)ResponseType.No == confirm.Run ()) {
                        confirm.Hide ();
                        confirm.Dispose ();
                        return;
                    }
                    confirm.Hide ();
                    confirm.Dispose ();
                    Config.GPSProf = null;
                }

                m_app.Profiles.DeleteProfile (dlg.ItemToDelete);
                RebuildProfiles();
            }
        }
 protected virtual void OnDeleteQuickFilter(object sender, System.EventArgs e)
 {
     DeleteItem dlg = new DeleteItem(m_app.QuickFilterList);
     dlg.Title = Catalog.GetString("Delete Quick Filter...");
     dlg.Icon = this.Icon;
     if ((int) ResponseType.Ok == dlg.Run())
     {
         m_app.QuickFilterList.DeleteFilter(dlg.ItemToDelete);
         RebuildQuickFilters();
     }
 }
 protected virtual void OnDeleteLocation(object sender, System.EventArgs e)
 {
     DeleteItem dlg = new DeleteItem(m_app.Locations);
     dlg.Title = Catalog.GetString("Delete Location...");
     dlg.Icon = this.Icon;
     if ((int)ResponseType.Ok == dlg.Run())
     {
         m_app.Locations.DeleteLocation(dlg.ItemToDelete);
     }
     RebuildLocations();
 }
 protected virtual void OnDeleteBookmarkList(object sender, System.EventArgs e)
 {
     DeleteItem dlg = new DeleteItem(m_app.Bookmarks);
     if ((int) ResponseType.Ok == dlg.Run())
     {
         m_app.CacheStore.RemoveBookmarkList(dlg.ItemToDelete);
         RebuildBookmarks();
     }
 }
 protected virtual void OnImportQuickFilter(object sender, System.EventArgs e)
 {
     DeleteItem dlg = new DeleteItem(m_Win.App.QuickFilterList, true);
     dlg.Title = Catalog.GetString("Import Quick Filter");
     dlg.Icon = this.Icon;
     dlg.Parent = this;
     if ((int)ResponseType.Ok == dlg.Run())
     {
         QuickFilter qf = m_Win.App.QuickFilterList.GetFilter(dlg.ItemToDelete);
         ImportQuickFilter (qf);
     }
 }