Пример #1
0
 private void UpdateContainer(INotifyContainer notify, string propertyName)
 {
     if (!string.IsNullOrEmpty(propertyName))
     {
         if (GetType().GetProperty(propertyName)?.GetCustomAttribute <ContainerPropertiesAffectedAttribute>() is ContainerPropertiesAffectedAttribute attribute)
         {
             if (notify != null)
             {
                 notify.DoNotify(new NotifyContainerEventArgs(attribute.Names));
             }
         }
     }
 }
Пример #2
0
 public FileIO(int bufferSizeMax, INotifyContainer notifyContainer)
 {
     bufferSize           = bufferSizeMax;
     buffer               = new byte[bufferSize];
     this.notifyContainer = notifyContainer;
 }