/// <summary> /// Change image of the previous /// </summary> private void Previous() { var index = IListBox.Items.IndexOf(PhotoList.Previous().GetLastPart()); if (index != -1) { IListBox.SelectedItem = IListBox.Items[index]; } Native.SetWindow(PhotoList.Previous(), SettingList.TypeImage); }