Esempio n. 1
0
        void QueryChangedEventHandler(object sender, EventArgs e)
        {
            Query q = QbUtil.ReadQuery(QuerySelectorControl.SelectedQueryId);

            if (q == null)
            {
                throw new Exception("Query not found");
            }

            SelectedQuery = q;
            SetupViewSelector(q, "");

            ViewSelectorComboBox.ShowPopup();

            return;
        }
Esempio n. 2
0
        private void OkButton_Click(object sender, EventArgs e)
        {
            if (SelectedQuery == null)
            {
                QuerySelectorControl.Focus();
                MessageBoxMx.ShowError("A query must be selected");
                return;
            }

            if (SelectedView == null)
            {
                ViewSelectorComboBox.Focus();
                MessageBoxMx.ShowError("A view must be selected for the query");
                return;
            }

            DialogResult = DialogResult.OK;
            return;
        }