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