Exemplo n.º 1
0
 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();
     }
 }