Пример #1
0
        private void addAuto()
        {
            frmAddAuto frm = new frmAddAuto();

            frm.ShowDialog();

            setData();
        }
Пример #2
0
        private void editAuto()
        {
            if (dtData != null && dgvData != null && dgvData.RowCount > 0 && dgvData.CurrentRow.Index != -1)
            {
                DataTable dtRows = dtData.DefaultView.ToTable();

                frmAddAuto frm = new frmAddAuto(dtRows.Rows[dgvData.CurrentRow.Index]);
                frm.ShowDialog();

                setData();
            }
        }