/// <summary> /// Function to Delete the Route /// </summary> public void DeleteFunction() { try { RouteSP spRoute = new RouteSP(); if (spRoute.RouteDeleting(decRouteId) == -1) { Messages.ReferenceExistsMessage(); } else { Messages.DeletedMessage(); GridFill(); Clear(); } } catch (Exception ex) { MessageBox.Show("RT7" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to Delete the Route /// </summary> public void DeleteFunction() { try { RouteSP spRoute = new RouteSP(); if (spRoute.RouteDeleting(decRouteId) == -1) { Messages.ReferenceExistsMessage(); } else { Messages.DeletedMessage(); GridFill(); Clear(); } } catch (Exception ex) { formMDI.infoError.ErrorString = "RT7" + ex.Message; } }
/// <summary> /// Function to Delete the Route /// </summary> public void DeleteFunction() { try { RouteSP spRoute = new RouteSP(); if (spRoute.RouteDeleting(decRouteId) == -1) { Messages.ReferenceExistsMessage(); } else { Messages.DeletedMessage(); GridFill(); Clear(); } } catch (Exception ex) { MessageBox.Show("RT7" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }