- 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))
|
if (File.Exists(imgfile))
|
||||||
{
|
{
|
||||||
FileInfo fi = new FileInfo(imgfile);
|
FileInfo fi = new FileInfo(imgfile);
|
||||||
|
frmMain.Status = "Processing Image " + fname;
|
||||||
// if the roimage record exists, don't create a new one...
|
// if the roimage record exists, don't create a new one...
|
||||||
ROImage roImg = null;
|
ROImage roImg = null;
|
||||||
using (roImg = ROImage.GetByRODbID_FileName_DTS(rodb.RODbID, imgname, fi.LastWriteTime))
|
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..
|
// see if it's already linked to the current rofst..
|
||||||
Figure figure = Figure.GetByROFstID_ImageID(rofstinfo.ROFstID, roImg.ImageID);
|
Figure figure = Figure.GetByROFstID_ImageID(rofstinfo.ROFstID, roImg.ImageID);
|
||||||
if (figure != null) return;
|
if (figure != null) return;
|
||||||
using (ROFst rofst = rofstinfo.Get())
|
//using (ROFst rofst = rofstinfo.Get())
|
||||||
{
|
ROFst rofst = rofstinfo.Get(); // Use the cached ROFST rather than creating and disposing
|
||||||
figure = Figure.MakeFigure(rofst, roImg, null);
|
figure = Figure.MakeFigure(rofst, roImg, null);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user