From 68998360df54f5da90713c16d9cef1bf6c1616ad Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 27 Jan 2009 15:50:01 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/DisplayTransition.cs | 2 +- PROMS/Volian.Controls.Library/PreviewROImage.cs | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/PROMS/Volian.Controls.Library/DisplayTransition.cs b/PROMS/Volian.Controls.Library/DisplayTransition.cs index 9a42f97f..18f68c37 100644 --- a/PROMS/Volian.Controls.Library/DisplayTransition.cs +++ b/PROMS/Volian.Controls.Library/DisplayTransition.cs @@ -272,7 +272,7 @@ namespace Volian.Controls.Library // right before the docversion. Also note that docversions are not displayed // (at least for now - as of 2/14/08), this may change and if so uncomment (& fix/test) // the next section of code where docversions are processed. - FolderInfo fi = FolderInfo.Get(1); + FolderInfo fi = FolderInfo.GetTop(); DropDownNode topnode = null; int cntnd = 0; while (fi.ChildFolderCount > 0) diff --git a/PROMS/Volian.Controls.Library/PreviewROImage.cs b/PROMS/Volian.Controls.Library/PreviewROImage.cs index 4f6bb888..a3d1f9fb 100644 --- a/PROMS/Volian.Controls.Library/PreviewROImage.cs +++ b/PROMS/Volian.Controls.Library/PreviewROImage.cs @@ -5,18 +5,20 @@ using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; +using System.IO; namespace Volian.Controls.Library { public partial class PreviewROImage : DevComponents.DotNetBar.Office2007Form //Form { - public PreviewROImage(string filename, string title) + public PreviewROImage(byte [] image, string title) { InitializeComponent(); Image.GetThumbnailImageAbort myCallback = new Image.GetThumbnailImageAbort(ThumbnailCallback); - - Bitmap bm = new Bitmap(filename); //Bitmap(filename); + + MemoryStream ms = new MemoryStream(image); + Bitmap bm = new Bitmap(ms); //Bitmap(filename); SizeF sizef = new SizeF(bm.Width / bm.HorizontalResolution, bm.Height / bm.VerticalResolution); // 747 & 535 is the size of the image window (roImage).