public frmContragent(ContragentRow row, bool isNew) { InitializeComponent(); this.row = row; this.isNew = isNew; }
private void btnAdd_Click(object sender, EventArgs e) { ContragentRow newRow = this.dataSet.Contragent.NewContragentRow(); frmContragent frm = new frmContragent(newRow, true); if (frm.ShowDialog() == DialogResult.OK) { this.dataSet.Contragent.Rows.Add(newRow); //dgvContragent. } }