示例#1
0
文件: FrmMain.cs 项目: zhh007/CKGen
        public void ShowSQLQuery(ShowSQLQueryEvent e)
        {
            var query = new SQLQueryView();
            query.Dock = DockStyle.Fill;

            DockContent dc = new DockContent();
            dc.Text = "查询";
            dc.Controls.Add(query);
            dc.Show(this.dockPanel, DockState.Document);

            if (!string.IsNullOrEmpty(e.SQL))
            {
                query.Query(e.SQL);
            }
        }
示例#2
0
文件: FrmMain.cs 项目: zhh007/CKGen
 /// <summary>
 /// SQL查询
 /// </summary>
 private void tsBtnQuery_Click(object sender, EventArgs e)
 {
     if (App.Instance.DBLink == null)
     {
         return;
     }
     ShowSQLQueryEvent evt = new ShowSQLQueryEvent();
     AppEvent.Publish(evt);
 }
示例#3
0
 private void ShowSQLQuery(string sql)
 {
     ShowSQLQueryEvent evt = new ShowSQLQueryEvent();
     evt.SQL = sql;
     AppEvent.Publish(evt);
 }