Пример #1
0
        public override void OnPropertyChanged(PropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);

            switch (e.PropertyName)
            {
            case "file":
            case "ImageFileName":
                this.BackgroundImage = TargaImage.LookupFile(this, TypedSerializationObject.file);
                break;
            }
        }
Пример #2
0
        protected override void OnUpdateControl()
        {
            base.OnUpdateControl();

            this.BackgroundImage = TargaImage.LookupFile(this, TypedSerializationObject.file);
        }