예제 #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
파일: FileIO.cs 프로젝트: IvanWhisper/-
 public FileIO(int bufferSizeMax, INotifyContainer notifyContainer)
 {
     bufferSize           = bufferSizeMax;
     buffer               = new byte[bufferSize];
     this.notifyContainer = notifyContainer;
 }