protected override void AgregarPrecioAction() { PrecioTrayectoForm form = new PrecioTrayectoForm(); if (form.ShowDialog(this) == DialogResult.OK) { _entity.PrecioTrayectos.NewItem(form.Entity); } }
protected override void EditarPrecioAction() { if (Datos_PrecioTrayecto.Current == null) { return; } PrecioTrayecto precio = (PrecioTrayecto)Datos_PrecioTrayecto.Current; PrecioTrayectoForm form = new PrecioTrayectoForm(precio); form.ShowDialog(this); }