This commit is contained in:
Kathy Ruffing 2012-09-12 13:00:57 +00:00
parent f8040e9a52
commit fdf285fea4

View File

@ -237,6 +237,36 @@ namespace VEPROMS
tv.ReportAllProceduresInconsistencies += new vlnTreeViewEvent(tv_ReportAllProceduresInconsistencies);
tv.ViewPDF += new vlnTreeViewPdfEvent(tv_ViewPDF);
}
private void MakeDatabaseChanges()
{
// September 2012: Decided to store roimages as zipped. Any previous data may not have them zipped.
// Check the top folders config to see, and if needed, zip them:
ROImageInfo.CompressAllExistingImages += new ROImageInfoCompressionEvent(ROImageInfo_CompressAllExistingImages);
ROImageInfo.ZipImages();
ROImageInfo.CompressAllExistingImages -= new ROImageInfoCompressionEvent(ROImageInfo_CompressAllExistingImages);
}
void ROImageInfo_CompressAllExistingImages(object sender, ROImageInfoCompressionEventArgs args)
{
switch (args.Type)
{
case ROImageCompressionEventType.Complete:
ProgBarText = "Compressing Complete";
break;
case ROImageCompressionEventType.Initialize:
ProgBarMax = args.Total;
ProgBarText = "Compressing RO Images";
break;
case ROImageCompressionEventType.Update:
ProgBarValue = args.Current;
ProgBarText = args.FileName;
break;
default:
break;
}
}
static string _ErrorLogFileName;
public static string ErrorLogFileName
@ -447,6 +477,10 @@ namespace VEPROMS
if (Settings.Default["WindowState"] != null) this.WindowState = Settings.Default.WindowState;
if (Settings.Default.SaveTreeviewExpanded)epProcedures.Expanded = Settings.Default.TreeviewExpanded;
if (Settings.Default["QATItems"] != null) ribbonControl1.QatLayout = Settings.Default.QATItems;
// See if any database 'changes' need done and do them:
MakeDatabaseChanges();
_MyMRIList = MostRecentItemList.GetMRILst((System.Collections.Specialized.StringCollection)(Properties.Settings.Default["MRIList"]));
_MyMRIList.AfterRemove += new ItemInfoEvent(_MyMRIList_AfterRemove);
SetupMRU();