Exemple #1
0
 private void button15_Click(object sender, EventArgs e)
 {
     if (Utils.API.GeocachingLiveV6.CheckAPIAccessAvailable(Core, false))
     {
         using (ServerConnectionForm dlg = new ServerConnectionForm(this.OwnerPlugin as ActionBuilder, Core))
         {
             dlg.ShowDialog();
         }
     }
 }
Exemple #2
0
        public override bool Action(string action)
        {
            bool result = base.Action(action);

            if (result)
            {
                if (UIChildWindowForm != null)
                {
                    if (action == ACTION_SHOW)
                    {
                        if (!UIChildWindowForm.Visible)
                        {
                            UIChildWindowForm.Show();
                        }
                        if (UIChildWindowForm.WindowState == FormWindowState.Minimized)
                        {
                            UIChildWindowForm.WindowState = FormWindowState.Normal;
                        }
                        UIChildWindowForm.BringToFront();
                    }
                    if (action == ACTION_DOWNLOADANDPUBLISH)
                    {
                        if (Utils.API.GeocachingLiveV6.CheckAPIAccessAvailable(Core, false))
                        {
                            using (ServerConnectionForm dlg = new ServerConnectionForm(this, Core))
                            {
                                dlg.ShowDialog();
                            }
                        }
                    }
                    else
                    {
                        (UIChildWindowForm as ActionBuilderForm).RunActionFlow(action.Substring(action.IndexOf('|') + 1), true);
                    }
                }
                result = true;
            }
            return(result);
        }
Exemple #3
0
 public override bool Action(string action)
 {
     bool result = base.Action(action);
     if (result)
     {
         if (UIChildWindowForm != null)
         {
             if (action == ACTION_SHOW)
             {
                 if (!UIChildWindowForm.Visible)
                 {
                     UIChildWindowForm.Show();
                 }
                 if (UIChildWindowForm.WindowState == FormWindowState.Minimized)
                 {
                     UIChildWindowForm.WindowState = FormWindowState.Normal;
                 }
                 UIChildWindowForm.BringToFront();
             }
             if (action == ACTION_DOWNLOADANDPUBLISH)
             {
                 if (Utils.API.GeocachingLiveV6.CheckAPIAccessAvailable(Core, false))
                 {
                     using (ServerConnectionForm dlg = new ServerConnectionForm(this, Core))
                     {
                         dlg.ShowDialog();
                     }
                 }
             }
             else
             {
                 (UIChildWindowForm as ActionBuilderForm).RunActionFlow(action.Substring(action.IndexOf('|') + 1), true);
             }
         }
         result = true;
     }
     return result;
 }
Exemple #4
0
 private void button15_Click(object sender, EventArgs e)
 {
     if (Utils.API.GeocachingLiveV6.CheckAPIAccessAvailable(Core, false))
     {
         using (ServerConnectionForm dlg = new ServerConnectionForm(this.OwnerPlugin as ActionBuilder, Core))
         {
             dlg.ShowDialog();
         }
     }
 }