Inheritance: System.Windows.Forms.Form
Exemplo n.º 1
0
        //添加新属性按钮
        private void btnAddNewParams_Click(object sender, EventArgs e)
        {
            if (this.maxcolumns >= 30)
            {
                MessageBox.Show("最多只能添加30个属性");
                return;
            }

            FrmAddNewParams frmNew = new FrmAddNewParams(tableName, labelList);

            if (frmNew.ShowDialog() == DialogResult.OK)
            {
                PDM_Params t_params = frmNew.M_PDM_Params;

                maxcolumns = GetMaxCountForProperties();
                if (maxcolumns >= 30)
                {
                    MessageBox.Show("最多只能添加30个属性");
                    return;
                }
                t_params.TARGET_COLNAME = "C" + (maxcolumns + 1);
                SaveColumnAndValue(t_params, frmNew.M_ProValue);

                CreateParams(pnlIsHasParams);
            }
        }
Exemplo n.º 2
0
        //添加新属性按钮
        private void btnAddNewParams_Click(object sender, EventArgs e)
        {
            if (this.maxcolumns >= 30)
            {
                MessageBox.Show("最多只能添加30个属性");
                return;
            }

            FrmAddNewParams frmNew = new FrmAddNewParams(tableName, labelList);
            if (frmNew.ShowDialog() == DialogResult.OK)
            {
                PDM_Params t_params= frmNew.M_PDM_Params;

                maxcolumns = GetMaxCountForProperties();
                if (maxcolumns >= 30) {
                    MessageBox.Show("最多只能添加30个属性");
                    return;
                }
                t_params.TARGET_COLNAME = "C" + (maxcolumns + 1);
                SaveColumnAndValue(t_params,frmNew.M_ProValue);

                CreateParams(pnlIsHasParams);
            }
        }