- Added status message for each image
- B2011-008 Changed code so that RoFst is used from cache rather than being repeatedly created
This commit is contained in:
parent
54a306f114
commit
41e5e5d523
@ -143,6 +143,7 @@ namespace DataLoader
|
||||
if (File.Exists(imgfile))
|
||||
{
|
||||
FileInfo fi = new FileInfo(imgfile);
|
||||
frmMain.Status = "Processing Image " + fname;
|
||||
// if the roimage record exists, don't create a new one...
|
||||
ROImage roImg = null;
|
||||
using (roImg = ROImage.GetByRODbID_FileName_DTS(rodb.RODbID, imgname, fi.LastWriteTime))
|
||||
@ -160,10 +161,9 @@ namespace DataLoader
|
||||
// see if it's already linked to the current rofst..
|
||||
Figure figure = Figure.GetByROFstID_ImageID(rofstinfo.ROFstID, roImg.ImageID);
|
||||
if (figure != null) return;
|
||||
using (ROFst rofst = rofstinfo.Get())
|
||||
{
|
||||
figure = Figure.MakeFigure(rofst, roImg, null);
|
||||
}
|
||||
//using (ROFst rofst = rofstinfo.Get())
|
||||
ROFst rofst = rofstinfo.Get(); // Use the cached ROFST rather than creating and disposing
|
||||
figure = Figure.MakeFigure(rofst, roImg, null);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user