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(); } } }
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); }
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; }
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(); } } }