public DialogResult ShowDialog( int selectedQueryId, string selectedQueryName) { QuerySelectorControl.Setup(selectedQueryId, selectedQueryName); DialogResult dr = ShowDialog(SessionManager.ActiveForm); return(dr); }
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); }