Beispiel #1
0
        void addForm_Completed(object sender, EventArgs e)
        {
            AddExtPropForm addForm = sender as AddExtPropForm;

            addForm.Completed -= new EventHandler(addForm_Completed);

            int index = dgExtProp.Rows.Add();

            dgExtProp.Rows[index].Cells[colDBField.Name].Value = addForm.FieldName;
            dgExtProp.Rows[index].Cells[colAlias.Name].Value   = addForm.AliasName;
        }
Beispiel #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(cbALTable.Text))
            {
                return;
            }

            List <string>  list    = MainForm.CurrentUDT.ListFields(cbALTable.Text);
            AddExtPropForm addForm = new AddExtPropForm(list.ToArray());

            addForm.StartPosition = FormStartPosition.CenterParent;
            addForm.Completed    += new EventHandler(addForm_Completed);
            addForm.ShowDialog();
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(cbALTable.Text))
                return;

            List<string> list = MainForm.CurrentUDT.ListFields(cbALTable.Text);
            AddExtPropForm addForm = new AddExtPropForm(list.ToArray());
            addForm.StartPosition = FormStartPosition.CenterParent;
            addForm.Completed += new EventHandler(addForm_Completed);
            addForm.ShowDialog();
        }