Ejemplo n.º 1
0
        private SqlQueryControl CreateQuery(ConnectionDetail con, string sql, string sourcePlugin)
        {
            var query = new SqlQueryControl(con, _metadata[con], _ai, WorkAsyncWithCancel, msg => SetWorkingMessage(msg), ExecuteMethod, SendOutgoingMessage, sourcePlugin);

            query.InsertText(sql);

            query.Show(dockPanel, WeifenLuo.WinFormsUI.Docking.DockState.Document);
            query.SetFocus();

            return(query);
        }
Ejemplo n.º 2
0
        private SqlQueryControl CreateQuery(ConnectionDetail con, string sql)
        {
            var query = new SqlQueryControl(con, _dataSources, _ai, xml => CreateFetchXML(xml), msg => LogError(msg), _properties);

            query.InsertText(sql);
            query.CancellableChanged += SyncStopButton;
            query.BusyChanged        += SyncExecuteButton;

            query.Show(dockPanel, DockState.Document);
            query.SetFocus();

            return(query);
        }