private void Delete_Click(object sender, RoutedEventArgs e) { GUI.PointRN.DeleteNumber(point.PointType, db.GetRoutsBySession(sessionID), db.getPointBySession(sessionID), wayVal); db.deletePoint(point.ID_Point); DataChangedEventHandler handler = DataChanged; if (handler != null) { handler(this, new EventArgs()); } this.Close(); }