/*public API_BTOpenZone closeInNSeconds(int seconds) * { * ie.closeInNSeconds(seconds); * return this; * } * * public API_BTOpenZone waitNSeconds(int seconds) * { * ie.waitNSeconds(seconds); * return this; * }*/ private static API_EventBrite createGui() { var topPanel = O2Gui.open <Panel>("EventBrite API", 500, 500); var ie = topPanel.add_IE(); ie.silent(true); var eventBrite = new API_EventBrite(ie); var actionsPanel = topPanel.insert_Above <Panel>(20); actionsPanel.add_Link("login", 2, 0, () => eventBrite.login()) .append_Link("logout", () => eventBrite.logout()) .append_Link("my events", () => eventBrite.myEvents()) .append_Link("create event", () => eventBrite.createEvent()) .append_Link("create account", () => eventBrite.createAccount()); eventBrite.homePage(); return(eventBrite); }
/*public API_BTOpenZone closeInNSeconds(int seconds) { ie.closeInNSeconds(seconds); return this; } public API_BTOpenZone waitNSeconds(int seconds) { ie.waitNSeconds(seconds); return this; }*/ private static API_EventBrite createGui() { var topPanel = O2Gui.open<Panel>("EventBrite API", 500,500); var ie = topPanel.add_IE(); ie.silent(true); var eventBrite = new API_EventBrite(ie); var actionsPanel = topPanel.insert_Above<Panel>(20); actionsPanel.add_Link("login", 2,0, ()=> eventBrite.login()) .append_Link("logout", ()=> eventBrite.logout()) .append_Link("my events", ()=> eventBrite.myEvents()) .append_Link("create event", ()=> eventBrite.createEvent()) .append_Link("create account", ()=> eventBrite.createAccount()); eventBrite.homePage(); return eventBrite; }
public static API_EventBrite gui() { return(API_EventBrite.createGui()); }