internal void InvokeProfileRemoved(int profileId) { if (_linesIntersections != null) { var intrersections = _linesIntersections.FirstOrDefault(line => line.LineId == profileId); if (intrersections != null) { _linesIntersections.Remove(_linesIntersections.FirstOrDefault(line => line.LineId == profileId)); } } ProfileRemoved?.Invoke(_profileSession.SessionId, profileId); }
public void RemoveProfile(IProfile profile) { if (profile == Active) { throw new ArgumentException(); } if (!profiles.Remove(profile)) { throw new ArgumentException(); } profile.Modified -= Profile_Modified; ProfileRemoved?.Invoke(this, profile); }
private void InvokeProfileRemoved(int sessionId, int lineId) { ProfileRemoved?.Invoke(sessionId, lineId); }