示例#1
0
        internal void MediaPage()
        {
            var p = new Pager();
            int i = MediaPanelPage;

            p.ShowDialog(this);
            if (i != MediaPanelPage)
            {
                LoadPreviews();
            }
        }
示例#2
0
        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();
            }
        }
示例#3
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();
     }
 }