Ignore:
Timestamp:
Aug 8, 2011, 6:57:56 PM (13 years ago)
Author:
bayral
Message:

Async image thumbail retriving

Location:
extensions/PiwigoLib/PiwigoWpf/DTO
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/PiwigoLib/PiwigoWpf/DTO/PwgImageWPF.cs

    r7150 r11922  
    1212    public class PwgImageWPF : INotifyPropertyChanged
    1313    {
     14        private String _imgSource;
     15        public String ImgSource
     16        {
     17            set { _imgSource = value; OnPropertyChanged("ImgSource"); }
     18            get
     19            {
     20                if (_imgSource == null)
     21                {
     22                    _imgSource = Com.Piwigo.Wpf.Service.ImageCacheManager.Instance.GetImageFilename(this);
     23                }
     24                return _imgSource;
     25            }
     26        }
     27       
     28
    1429        private Int32 _id;
    1530        public  Int32 Id
  • extensions/PiwigoLib/PiwigoWpf/DTO/PwgModelManager.cs

    r11905 r11922  
    2727        public class PwgModelManagerBase
    2828        {
     29            private AsyncObservableCollection<String> _lstMsgInfo = new AsyncObservableCollection<String>();
     30            public AsyncObservableCollection<String> lstMsgInfo
     31            {
     32                set { _lstMsgInfo = value; OnPropertyChanged("lstMsgInfo"); }
     33                get { return _lstMsgInfo; }
     34            }
     35
     36            private Boolean _booCmdRunning = false;
     37            public Boolean booCmdRunning
     38            {
     39                set { _booCmdRunning = value; OnPropertyChanged("booCmdRunning"); }
     40                get { return _booCmdRunning; }
     41            }
     42
    2943            private PwgImageListWPF _imageList;
    3044            public PwgImageListWPF ImageList
     
    4963
    5064            public event PropertyChangedEventHandler PropertyChanged;
    51             private void OnPropertyChanged(String info)
     65            internal void OnPropertyChanged(String info)
    5266            {
    5367                if (PropertyChanged != null)
Note: See TracChangeset for help on using the changeset viewer.