Exemple #1
0
        public frmContragent(ContragentRow row, bool isNew)
        {
            InitializeComponent();

            this.row   = row;
            this.isNew = isNew;
        }
Exemple #2
0
        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.
            }
        }