private void openAddEdit(Route route) { int idRegion; int.TryParse(cbRegion.SelectedValue.ToString(), out idRegion); Route_AddEdit routeAE = new Route_AddEdit(route, idRegion); if (routeAE.ShowDialog() == System.Windows.Forms.DialogResult.OK) { loadData(); } }
private void openAddEdit(Route route) { int idRegion; int.TryParse(cbRegion.SelectedValue.ToString(), out idRegion); Route_AddEdit routeAE = new Route_AddEdit(route, idRegion); if (routeAE.ShowDialog() == System.Windows.Forms.DialogResult.OK) loadData(); }