// 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]); } }
// 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]); } }