Exemplo n.º 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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 private void InvokeProfileRemoved(int sessionId, int lineId)
 {
     ProfileRemoved?.Invoke(sessionId, lineId);
 }
Exemplo n.º 4
0
 public void When(ProfileRemoved profileRemoved)
 {
     Deleted = profileRemoved.Deleted;
 }