Exemplo n.º 1
0
 // Next Img
 private void next_img_Click(object sender, RoutedEventArgs e)
 {
     if (GloableObject.cur_img_position == 0 || GloableObject.cur_img_position < GloableObject.file_list.Count() - 1)
     {
         GloableObject.cur_img_position++;
         GloableObject.change_img(GloableObject.file_list[GloableObject.cur_img_position]);
     }
 }
Exemplo n.º 2
0
 // Pre Img
 private void pre_img_Click(object sender, RoutedEventArgs e)
 {
     if (GloableObject.cur_img_position > 0)
     {
         GloableObject.cur_img_position--;
         GloableObject.change_img(GloableObject.file_list[GloableObject.cur_img_position]);
     }
 }