static void Main() { Application.SetCompatibleTextRenderingDefault(false); var mainForm = new SwdMainView(); Run(mainForm); }
public void InitView(SwdMainView view) { this.view = view; // Subscribe to WebDriverUtils events SwdBrowser.OnDriverStarted += InitControls; SwdBrowser.OnDriverClosed += InitControls; InitControls(); }
public static SwdMainView Run(SwdMainView mainForm) { Application.EnableVisualStyles(); Application.ApplicationExit += new EventHandler(Application_ApplicationExit); AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit); Application.Run(mainForm); return mainForm; }
public SwitchToPopupView(BrowserPageFrame currentFrame, SwdMainView parent) { InitializeComponent(); this.parentView = parent; this.presenter = MyPresenters.SwitchToPopupPresenter; presenter.InitWithView(this); presenter.InitWithFrame(currentFrame); }
public static SwdMainView Run(SwdMainView mainForm) { Application.EnableVisualStyles(); Application.ApplicationExit += new EventHandler(Application_ApplicationExit); AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit); Application.Run(mainForm); return(mainForm); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.ThreadException += new ThreadExceptionHandler().ApplicationThreadException; Application.ApplicationExit += new EventHandler(Application_ApplicationExit); AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit); var mainForm = new SwdMainView(); Application.Run(mainForm); }