Example #1
0
 public override bool Action(string action)
 {
     bool result = base.Action(action);
     if (result && action == ACTION_BATCH)
     {
         if (Utils.API.GeocachingLiveV6.CheckAPIAccessAvailable(Core, false))
         {
             using (BatchLogForm dlg = new BatchLogForm(this, Core))
             {
                 dlg.ShowDialog();
             }
         }
     }
     else if (result && action == ACTION_VISITFINDS)
     {
         if (Utils.API.GeocachingLiveV6.CheckAPIAccessAvailable(Core, false))
         {
             using (VisitMyFindsForm dlg = new VisitMyFindsForm(this, Core))
             {
                 dlg.ShowDialog();
             }
         }
     }
     return result;
 }
Example #2
0
        public override bool Action(string action)
        {
            bool result = base.Action(action);

            if (result && action == ACTION_BATCH)
            {
                if (Utils.API.GeocachingLiveV6.CheckAPIAccessAvailable(Core, false))
                {
                    using (BatchLogForm dlg = new BatchLogForm(this, Core))
                    {
                        dlg.ShowDialog();
                    }
                }
            }
            else if (result && action == ACTION_VISITFINDS)
            {
                if (Utils.API.GeocachingLiveV6.CheckAPIAccessAvailable(Core, false))
                {
                    using (VisitMyFindsForm dlg = new VisitMyFindsForm(this, Core))
                    {
                        dlg.ShowDialog();
                    }
                }
            }
            return(result);
        }