Пример #1
0
        private void Edit(object sender, EventArgs e)
        {
            frmManaField F = new frmManaField();

            F.dtField = (DataTable)gridField.DataSource;
            F.ShowDialog();
            F.Dispose();
        }
Пример #2
0
        private void AddRow(object sender, EventArgs e)
        {
            if (tvTable.SelectedNode.Level != 2)
            {
                return;
            }
            frmManaField F = new frmManaField();

            F.dtField       = (DataTable)gridField.DataSource;
            F.strModuleName = tvTable.SelectedNode.Parent.Text;
            F.strTableText  = tvTable.SelectedNode.Text.ToString();
            F.strTableName  = tvTable.SelectedNode.Tag.ToString();
            if (F.ShowDialog() == DialogResult.OK)
            {
                RefreshField(tvTable.SelectedNode.Tag.ToString());
            }
            F.Dispose();
        }