Beispiel #1
0
 public override bool Action(string action)
 {
     bool result = base.Action(action);
     if (result && action == ACTION_AUTHORIZEONLY)
     {
         Utils.API.GeocachingLiveV6.Authorize(Core, false);
     }
     else if (result && action == ACTION_AUTHORIZE)
     {
         Utils.API.GeocachingLiveV6.Authorize(Core, true);
     }
     else if (result && action == ACTION_AUTHORIZE_MANUAL)
     {
         using (GCLiveManualForm dlg = new GCLiveManualForm(Core))
         {
             dlg.ShowDialog();
         }
     }
     return result;
 }
Beispiel #2
0
        public override bool Action(string action)
        {
            bool result = base.Action(action);

            if (result && action == ACTION_AUTHORIZEONLY)
            {
                Utils.API.GeocachingLiveV6.Authorize(Core, false);
            }
            else if (result && action == ACTION_AUTHORIZE)
            {
                Utils.API.GeocachingLiveV6.Authorize(Core, true);
            }
            else if (result && action == ACTION_AUTHORIZE_MANUAL)
            {
                using (GCLiveManualForm dlg = new GCLiveManualForm(Core))
                {
                    dlg.ShowDialog();
                }
            }
            return(result);
        }