// Token: 0x06001FCB RID: 8139 RVA: 0x000692AC File Offset: 0x000674AC private void method_8(int groupIndex, bool scrollToEnd = false) { if (this.int_0 == groupIndex) { return; } this.int_0 = groupIndex; this.ThumbnailPanel.SuspendLayout(); this.ThumbnailPanel.Controls.Clear(); ThumbnailStrip.Class131 @class = null; foreach (ThumbnailStrip.Class131 class2 in this.class299_0[groupIndex]) { if (!scrollToEnd && @class == null) { @class = class2; } this.ThumbnailPanel.Controls.Add(class2.thumbnailContainer_0); if (scrollToEnd) { @class = class2; } } this.ThumbnailPanel.ResumeLayout(); if (@class != null) { this.ThumbnailPanel.method_0(@class.thumbnailContainer_0); } }
// Token: 0x06001FC8 RID: 8136 RVA: 0x00069274 File Offset: 0x00067474 public bool method_7(string fileName) { if (this.dictionary_0.ContainsKey(fileName)) { ThumbnailStrip.Class131 item = this.dictionary_0[fileName]; this.class299_0.method_1(item); return(true); } return(false); }
// Token: 0x06001FCF RID: 8143 RVA: 0x000694E4 File Offset: 0x000676E4 private void method_11(ThumbnailStrip.Class131 thumb) { FormClosedEventHandler formClosedEventHandler = null; EventHandler eventHandler = null; EventHandler eventHandler2 = null; EventHandler eventHandler3 = null; EventHandler eventHandler4 = null; if (this.myGalleryViewer_0 == null) { this.myGalleryViewer_0 = new MyGalleryViewer(); Form form = this.myGalleryViewer_0; if (formClosedEventHandler == null) { formClosedEventHandler = new FormClosedEventHandler(this.method_15); } form.FormClosed += formClosedEventHandler; Control control = this.myGalleryViewer_0; if (eventHandler == null) { eventHandler = new EventHandler(this.method_16); } control.Resize += eventHandler; Form form2 = this.myGalleryViewer_0; if (eventHandler2 == null) { eventHandler2 = new EventHandler(this.method_17); } form2.Activated += eventHandler2; MyGalleryViewer myGalleryViewer = this.myGalleryViewer_0; if (eventHandler3 == null) { eventHandler3 = new EventHandler(this.method_18); } myGalleryViewer.ShowNextImage += eventHandler3; MyGalleryViewer myGalleryViewer2 = this.myGalleryViewer_0; if (eventHandler4 == null) { eventHandler4 = new EventHandler(this.method_19); } myGalleryViewer2.ShowPreviousImage += eventHandler4; this.myGalleryViewer_0.Show(); } this.myGalleryViewer_0.method_1(thumb.class140_0.FilePath); }
// Token: 0x06001FCD RID: 8141 RVA: 0x000693E8 File Offset: 0x000675E8 public void method_10() { if (this.class131_0 == null) { return; } int num = this.class299_0.method_3(this.class131_0); if (num == 0) { num = this.class299_0.Elements - 1; } else { num--; } ThumbnailStrip.Class131 @class = this.class299_0.method_4(num); this.method_8(this.class299_0.method_2(@class), false); @class.thumbnailContainer_0.Selected = true; if (this.myGalleryViewer_0 != null) { this.method_11(@class); } }