Exemplo n.º 1
0
        public DialogResult ShowDialog(
            int selectedQueryId,
            string selectedQueryName)
        {
            QuerySelectorControl.Setup(selectedQueryId, selectedQueryName);
            DialogResult dr = ShowDialog(SessionManager.ActiveForm);

            return(dr);
        }
Exemplo n.º 2
0
        public DialogResult ShowDialog(
            Query selectedQuery,
            string selectedViewId)
        {
            int    selectedQueryId   = -1;
            string selectedQueryName = "";

            if (selectedQuery != null)
            {
                selectedQueryId   = selectedQuery.UserObject.Id;
                selectedQueryName = selectedQuery.UserObject.Name;
            }

            QuerySelectorControl.Setup(selectedQueryId, selectedQueryName, QueryChangedEventHandler);
            SetupViewSelector(selectedQuery, selectedViewId);
            DialogResult dr = ShowDialog(SessionManager.ActiveForm);

            return(dr);
        }