internal void MediaPage() { var p = new Pager(); int i = MediaPanelPage; p.ShowDialog(this); if (i != MediaPanelPage) { LoadPreviews(); } }
internal void MediaPage() { var p = new Pager(); int i = MediaPanelPage; p.ShowDialog(this); if (i != MediaPanelPage) { foreach (Control c in flowPreview.Controls) { if (c is PreviewBox pb && pb.Selected) { pb.MouseDown -= PbMouseDown; pb.MouseEnter -= PbMouseEnter; pb.Dispose(); } } flowPreview.Controls.Clear(); flowPreview.Refresh(); LoadPreviews(); } }
internal void MediaPage() { var p = new Pager(); int i = MediaPanelPage; p.ShowDialog(this); if (i != MediaPanelPage) { foreach (Control c in flowPreview.Controls) { var pb = c as PreviewBox; if (pb != null && pb.Selected) { pb.MouseDown -= PbMouseDown; pb.MouseEnter -= PbMouseEnter; pb.Dispose(); } } flowPreview.Controls.Clear(); flowPreview.Refresh(); LoadPreviews(); } }