예제 #1
0
        private void bEditSQL_Click(object sender, System.EventArgs e)
        {
            SQLCtl sc = new SQLCtl(_Draw, cbDataSource.Text, this.tbSQL.Text, _dsv.QueryParameters);

            try
            {
                DialogResult dr = sc.ShowDialog(this);
                if (dr == DialogResult.OK)
                {
                    tbSQL.Text = sc.SQL;
                }
            }
            finally
            {
                sc.Dispose();
            }
        }
예제 #2
0
 private void bEditSQL_Click(object sender, System.EventArgs e)
 {
     SQLCtl sc = new SQLCtl(_Draw, cbDataSource.Text, this.tbSQL.Text, _dsv.QueryParameters);
     try
     {
         DialogResult dr = sc.ShowDialog(this);
         if (dr == DialogResult.OK)
         {
             tbSQL.Text = sc.SQL;
         }
     }
     finally
     {
         sc.Dispose();
     }
 }