public void CopyToDB()
 {
     CopyMoveDialog dlg = new CopyMoveDialog ();
     dlg.Title = "Copy Caches to Another Database...";
     dlg.Filename = Config.DataDirectory;
     dlg.Icon = this.Icon;
     if ((int)ResponseType.Ok == dlg.Run ()) {
         CopyingProgress cp = new CopyingProgress ();
         cp.Icon = this.Icon;
         cp.Start (dlg.Filename, false, dlg.Mode, this);
     }
 }
 public void MoveToDB()
 {
     CopyMoveDialog dlg = new CopyMoveDialog ();
     dlg.Title = Catalog.GetString ("Move Geocaches...");
     dlg.Title = "Move Caches to Another Database...";
     dlg.Filename = Config.DataDirectory;
     dlg.Icon = this.Icon;
     if ((int)ResponseType.Ok == dlg.Run ()) {
         CopyingProgress cp = new CopyingProgress ();
         cp.Icon = this.Icon;
         cp.Start (dlg.Filename, true, dlg.Mode, this);
         CacheList.Refresh ();
     }
 }
 protected virtual void OnDeleteAll(object sender, System.EventArgs e)
 {
     MessageDialog dlg = new MessageDialog (this, DialogFlags.Modal, MessageType.Warning, ButtonsType.YesNo, String.Format (Catalog.GetString ("Are you sure you want to delete these {0} caches?\nThis operation cannot be undone."), CacheList.UnfilteredCaches.Count));
     if ((int)ResponseType.Yes == dlg.Run ()) {
         dlg.Hide ();
         OCMApp.UpdateGUIThread();
         CopyingProgress ddlg = new CopyingProgress ();
         ddlg.Icon = this.Icon;
         ddlg.StartDelete (CacheList.UnfilteredCaches, this);
         CacheList.Refresh();
     } else {
         dlg.Hide ();
     }
 }