[iclect-commits] iclect/src/iclect.Forms Film.cs,1.5,1.6
Status: Beta
Brought to you by:
mhjp
|
From: Michael P. <mh...@us...> - 2003-07-03 14:32:55
|
Update of /cvsroot/iclect/iclect/src/iclect.Forms
In directory sc8-pr-cvs1:/tmp/cvs-serv15539/src/iclect.Forms
Modified Files:
Film.cs
Log Message:
Distinguish between the time an image was taken, if available, and the time the file was created.
Index: Film.cs
===================================================================
RCS file: /cvsroot/iclect/iclect/src/iclect.Forms/Film.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Film.cs 29 Jun 2003 00:51:52 -0000 1.5
--- Film.cs 3 Jul 2003 14:32:51 -0000 1.6
***************
*** 263,269 ****
toolTip.Active = false;
ImageFile imageFile = _imageFolder.ImageFiles[index];
! string text = string.Format("Image: {0}\r\nCreated: {1}\r\nSize: {2} x {3}",
imageFile.FileInfo.Name,
! imageFile.CreationTime,
imageFile.Width,
imageFile.Height
--- 263,281 ----
toolTip.Active = false;
ImageFile imageFile = _imageFolder.ImageFiles[index];
! DateTime time;
! string creation;
! if (imageFile.RecordingTime == DateTime.MinValue)
! {
! time = imageFile.FileInfo.CreationTime;
! creation = "Created";
! }
! else
! {
! time = imageFile.RecordingTime;
! creation = "Taken";
! }
! string text = string.Format("Image: {0}\r\n{1}: {2}\r\nSize: {3} x {4}",
imageFile.FileInfo.Name,
! creation, time,
imageFile.Width,
imageFile.Height
|