private static void SetupMainForm() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Program.frmMain = new FrmMain(); /* * The manual call to select here is so that the controls can be * manipulated before it is set to Visible for the first time. */ frmMain.Select(); }
private static void ShowInitialMessage(FrmMain frmMain) { DisplayableMessageArguments dma = new DisplayableMessageArguments(frmMain.messageRendererWebBrowser); dma.setArgument("url", "http://localhost:" + HttpServer.port + "/?servlet=ServletStartup"); Program.scheduler.add(dma); Program.scheduler.Run(); }