Esempio n. 1
0
 public MainUI(MainUIForm form)
 {
     if (form == null) throw new ArgumentNullException("queryUIForm");
     _Form = form;
     _Form.NewQuery+=new EventHandler(OnFormNewQuery);
     _Form.CloseForm+=new EventHandler(OnFormCloseForm);
     _Form.ShowAbout+=new EventHandler(OnFormShowAbout);
 }
Esempio n. 2
0
        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);
        }