CalDavSynchronizer.Ui.SystrayNotification.ViewModels.ProfileStatusesViewModel.RemoveIfAvailable C# (CSharp) Метод

RemoveIfAvailable() приватный Метод

private RemoveIfAvailable ( System.Guid profileId ) : void
profileId System.Guid
Результат void
    void RemoveIfAvailable (Guid profileId)
    {
      ProfileStatusViewModel profileStatusViewModel;
      if (_profileStatusViewModelsById.TryGetValue (profileId, out profileStatusViewModel))
      {
        Profiles.Remove (profileStatusViewModel);
        _profileStatusViewModelsById.Remove (profileId);
      }
    }