public static void AddThumbnail(DockableDocument doc)
 {
     //TabbedThumbnail thumb = new TabbedThumbnail(m_parent.Handle, doc);
     //thumb.TabbedThumbnailActivated += (s, e) => doc.Show();
     //m_manager.AddThumbnailPreview(thumb);
     //Bitmap bmp = new Bitmap(doc.Width, doc.Height, PixelFormat.Format32bppArgb);
     ////doc.DrawToBitmap(bmp, doc.Bounds);
     //doc.Controls[0].DrawToBitmap(bmp, doc.Controls[0].Bounds);
     //m_previews[doc] = bmp;
     //thumb.TabbedThumbnailBitmapRequested += 
     //    (s, e) => 
     //    {
     //        doc.Show();
     //        Bitmap newBmp = new Bitmap(doc.Width, doc.Height, PixelFormat.Format32bppArgb);
     //        //doc.DrawToBitmap(bmp, doc.Bounds);
     //        doc.Controls[0].DrawToBitmap(newBmp, doc.Controls[0].Bounds);
     //        e.SetImage(newBmp);
     //        e.Handled = true;
     //    };
 }
 public static void RemoveThumbnail(DockableDocument doc)
 {
     //m_manager.RemoveThumbnailPreview(doc);
     //m_previews.Remove(doc);
 }
Exemple #3
0
 public void RemoveDocument(DockableDocument mainWindowDocument)
 {
     mainWindowDocument.Hide();
 }
Exemple #4
0
 public void AddDocument(DockableDocument mainWindowDocument)
 {
     mainWindowDocument.Show(this.dock);
 }
Exemple #5
0
 public void RemoveDocument(DockableDocument profileDocument)
 {
     profileDocument.Hide();
 }
Exemple #6
0
        public void AddDocument(DockableDocument profileDocument)
        {
            if (profileDocument == null)
                throw new ArgumentNullException("profileDocument");

            profileDocument.Show(dock);
        }