Beispiel #1
0
 void sortSlice_OnSliceLoaded(object sender, SliceLoadedEventArgs e)
 {
     if (e.SliceID == _currentSortSliceIndex)
     {
         (sender as PhotoSlice).ShowHighRes();
         (sender as PhotoSlice).FadeIn();
     }
     else if(Math.Abs(_currentSortSliceIndex - e.SliceID) <= CommonValues.SortBufferCount)
     {
         (sender as PhotoSlice).ShowHighRes();
         (sender as PhotoSlice).FadeOut();
     }
     else
     {
         (sender as PhotoSlice).ShowLowRes();
         (sender as PhotoSlice).FadeOut();
     }
 }
Beispiel #2
0
 void mySlice_OnSliceLoaded(object sender, SliceLoadedEventArgs e)
 {
     _renderedSliceCount++;
     (sender as PhotoSlice).ShowLowRes();
     if(_renderedSliceCount ==_randomSliceCount)
         OnRandomSliceInitialed();
 }