コード例 #1
0
        private void BtnAddColumns_Click(object sender, System.EventArgs e)
        {
            FrmExpression frmExpressrion = new FrmExpression(AvaliableFieldList);

            if (frmExpressrion.ShowDialog() == DialogResult.OK)
            {
                this.lstAll.Items.Insert(0, frmExpressrion.strExpression);

                this.lstAll.ClearSelected();

                this.lstAll.SelectedIndex = 0;
            }
        }
コード例 #2
0
        private void BtnInsertNew_Click(object sender, System.EventArgs e)
        {
            FrmExpression frmExpressrion = new FrmExpression(AvaliableFieldList);

            if (frmExpressrion.ShowDialog() == DialogResult.OK)
            {
                this.checkedListFields.Items.Add(frmExpressrion.strExpression, true);

                int index = this.checkedListFields.FindString(frmExpressrion.strExpression);

                this.checkedListFields.SelectedIndex = index;

                this.SetSQLText();
            }
        }