public void GoBack() { PageMode.getPrevPos(ref CurrentPosition); ImgStruct thisPic = FM.GetPrevPos(ref CurrentPosition); if (!Settings.EndBeginAlerts || !thisPic.IsLastorFirstImage || YesNoDialog.AskForAction(new BeginningObject())) { updatePic(thisPic); } else { PageMode.getNextPos(ref CurrentPosition); } }
/* ------ File Traversal Methods ---- */ public void GotoNext() { PageMode.getNextPos(ref CurrentPosition); ImgStruct thisPic = FM.GetNextPos(ref CurrentPosition); if (!Settings.EndBeginAlerts || //This must be simplified and cleaned !thisPic.IsLastorFirstImage || YesNoDialog.AskForAction(new FinishingObject())) { updatePic(thisPic); } else { PageMode.getPrevPos(ref CurrentPosition); //Revert back to last picture } }
public void updatePic(ImgStruct currentimg) { thisform.LoadPic(currentimg.Img); thisform.ChangeDirectoryTextBox(currentimg.Pathname); }