static void Main() { Application.EnableVisualStyles(); Application.EnableRTLMirroring(); MainUIForm form = new MainUIForm(); _MainUI = new MainUI(form); Application.ThreadException+=new System.Threading.ThreadExceptionEventHandler(OnThreadException); Application.Run(form); }
public QueryUI(MainUI parent, QueryUIForm form) { if (parent == null) throw new ArgumentNullException("parent"); if (form == null) throw new ArgumentNullException("queryUIForm"); _Parent = parent; _Form = form; _Form.ExecuteQuery+=new ExecuteQueryEventHandler(OnFormExecuteQuery); _Form.ChangeConnectionString+=new EventHandler(OnFormChangeConnectionString); _Form.CloseQueryForm+=new EventHandler(OnFormCloseQueryForm); _Form.ExitApplication+=new EventHandler(OnFormExitApplication); }