Esempio n. 1
0
        private void QueryViewSelectorDialog_Activated(object sender, EventArgs e)
        {
            ActivationCount++;

            if (QuerySelectorControl.SelectedQueryId < 0 && ActivationCount == 1)              // show menu on first activation only

            {
                DelayedCallback.Schedule(                 // schedule callback
                    delegate(object state)
                    { QuerySelectorControl.ShowSelectQueryMenu(); });
            }

            else
            {
                QuerySelectorControl.Focus();
            }
        }
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;
        }