コード例 #1
0
		public static BaseLinkImagesContainer Create(ImageSourceGroup parent)
		{
			if (parent is FavoriteImageGroup)
				return new FavoritesImagesContainer(parent);
			if (parent is RegularImageGroup)
				return new RegularImagesContainer(parent);
			if (parent is SearchResultsImageGroup)
				return new SearchResultsImagesContainer(parent);
			throw new ArgumentOutOfRangeException("There is no container control for image group");
		}
コード例 #2
0
		protected BaseLinkImagesContainer(ImageSourceGroup parent)
		{
			InitializeComponent();
			_parent = parent;
			Text = _parent.Name;
			_parent.DataChanged += OnParentImageGroupChanged;
			imageListView.ItemClick += OnGalleryItemClick;
			imageListView.ItemDoubleClick += OnGalleryItemDoubleClick;
			imageListView.ItemHover += OnGalleryItemHover;
			imageListView.MouseDown += OnGalleryMouseDown;
			Disposed += OnDisposed;
		}
コード例 #3
0
		public FavoritesImagesContainer(ImageSourceGroup parent) : base(parent) {}
コード例 #4
0
		public RegularImagesContainer(ImageSourceGroup parent) : base(parent) { }
コード例 #5
0
		public void Release()
		{
			imageListView.ClearSelection();
			imageListView.Items.Clear();
			_parent = null;
		}
コード例 #6
0
		public SearchResultsImagesContainer(ImageSourceGroup parent) : base(parent)
		{
			PageVisible = false;
		}