private void addRoutes() { frmAddRoutes frm = new frmAddRoutes(); frm.ShowDialog(); setData(); }
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(); } }