Ejemplo n.º 1
0
        /// <summary>
        /// 配置下拉框
        /// </summary>
        /// <param name="sender">事件发送者</param>
        /// <param name="e">事件参数</param>
        private void bConfigList_Click(object sender, EventArgs e)
        {
            string listType = "text";

            if (rListDatabaseType.Checked)
            {
                listType = "database";
            }

            string listData = listDataBox.Text;

            ListConfigForm listConfigForm = new ListConfigForm(conn, listType, listData);

            if (listConfigForm.ShowDialog() == DialogResult.OK)
            {
                listDataBox.Text = listConfigForm.ConfigInfo;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 配置下拉框
        /// </summary>
        /// <param name="sender">事件发送者</param>
        /// <param name="e">事件参数</param>
        private void bConfigList_Click(object sender, EventArgs e)
        {
            string listType = "text";

            if (rListDatabaseType.Checked)
            {
                listType = "database";
            }

            string listData = listDataBox.Text;

            ListConfigForm listConfigForm = new ListConfigForm(conn, listType, listData);

            if (listConfigForm.ShowDialog() == DialogResult.OK)
            {
                listDataBox.Text = listConfigForm.ConfigInfo;
            }
        }