Пример #1
0
        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);
        }
Пример #2
0
 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);
 }
Пример #3
0
 private void InvokeProfileRemoved(int sessionId, int lineId)
 {
     ProfileRemoved?.Invoke(sessionId, lineId);
 }