Пример #1
0
        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);
        }
Пример #2
0
        private void OnFormNewQuery(object sender, EventArgs e)
        {
            QueryUIForm queryUIForm = new QueryUIForm();
            QueryUI queryUI = new QueryUI(this, queryUIForm);
            _QueryUIChildren.Add(queryUIForm, queryUI);

            queryUIForm.MdiParent = _Form;
            queryUI.Activate();
        }