/// <summary>
        /// 设置SQL语句
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_SetSQL_Click(object sender, EventArgs e)
        {
            SelectByAttributesForm selectform = new SelectByAttributesForm(slayer.SpaceData.Property);

            selectform.ShowDialog();
            if (selectform.DialogResult == DialogResult.OK)
            {
                TB_SQL.Text = selectform.SQLstring;
            }
        }
Beispiel #2
0
        /// <summary>
        /// //根据属性选择要素
        /// </summary>
        private void toolStripSelectByAttribute_Click(object sender, System.EventArgs e)
        {
            SelectByAttributesForm form = new SelectByAttributesForm(property);

            if (form.ShowDialog() == DialogResult.OK)
            {
                dataGridView.DataSource = form.ResultTable;  //待完善
            }
            form.Dispose();
        }