private async void GetIcon96x96()
        {
            _cachedIcon96x96 = await IconCache.GetIcon(FullName, IconSize.Large);

            if (_cachedIcon96x96 != null)
            {
                OnPropertyChanged("Icon96x96");
            }

            _isLoadingIcon96x96 = false;
        }
        private async void GetIcon16x16()
        {
            _cachedIcon16x16 = await IconCache.GetIcon(FullName, IconSize.ExtraSmall);

            if (_cachedIcon16x16 != null)
            {
                OnPropertyChanged("Icon16x16");
            }

            _isLoadingIcon16x16 = false;
        }
        private async void GetIcon32x32()
        {
            _cachedIcon32x32 = await IconCache.GetIcon(FullName, IconSize.Small);

            if (_cachedIcon32x32 != null)
            {
                OnPropertyChanged("Icon32x32");
            }

            _isLoadingIcon32x32 = false;
        }
Example #4
0
		private async void GetIcon()
		{
			if (Location != "This PC\\")
			{
				if (_isLoadingIcon)
					return;

				_isLoadingIcon = true;

				IconData = await IconCache.GetIcon(Location, IconSize.ExtraSmall);

				_isLoadingIcon = false;
			}
			else
				IconData = IconCache.GetDefaultComputerIcon();
		}