示例#1
0
 /// <summary>
 /// Disposeによりアンマネージリソースを開放します。
 /// </summary>
 protected virtual void OnDisposed()
 {
     if (Source != null)
     {
         Source.PropertyChanged -= OnPropertyChanged;
     }
     Source = null;
 }
示例#2
0
        public BindableBase(BindableBase source)
        {
            Source = source;

            if (Source != null)
            {
                Source.PropertyChanged += OnPropertyChanged;
            }
        }