Esempio n. 1
0
        private void addRoutes()
        {
            frmAddRoutes frm = new frmAddRoutes();

            frm.ShowDialog();

            setData();
        }
Esempio n. 2
0
        private void editRoutes()
        {
            if (dtData != null && dgvData != null && dgvData.RowCount > 0 && dgvData.CurrentRow.Index != -1)
            {
                DataTable dtRows = dtData.DefaultView.ToTable();

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

                setData();
            }
        }