public void MovePrev() { _current--; if (_current == -1) _current = _images.Count - 1; CurrentImage = _images[_current]; }
public void MoveNext() { _current++; if (_current == _images.Count) _current = 0; CurrentImage = _images[_current]; }
public void SetList(IEnumerable<ImageViewModel> images, ImageViewModel selectedImage) { _images.Clear(); _images.AddRange(images); _current = _images.IndexOf(selectedImage); CurrentImage = _current >= 0 ? _images[_current] : null; }
public LibraryCtrlViewModel(ImageListViewModel library) { _images = new List<ImageViewModel>(); foreach (var i in library) { _images.Add(i); } _current = _images[1]; }
public void MoveLast() { _current = _images.Count - 1; CurrentImage = _images[_current]; }
public void MoveFirst() { _current = 0; CurrentImage = _images[_current]; }