예제 #1
0
 public BOCls_Photo()
 {
     oDBPhotoController = new DBCls_Photos();
     ID = "";
     PhotoSRC = new Byte[0];
     ObjectStatus = (int)UserStatus.New;
 }
예제 #2
0
 public bool GetPhotoByID(String PhotoID)
 {
     try
     {
         oDBPhotoController = new DBCls_Photos();
         Object[,] mArrPhoto = oDBPhotoController.SearchPhoto(PhotoID);
         if (mArrPhoto != null)
         {
             ID = Convert.ToString(mArrPhoto[0,(int)PhotoCriteria.cID]);
             PhotoSRC = (Byte[])mArrPhoto[0,(int)PhotoCriteria.cPHOTO];
         }
         oDBPhotoController = null;
     }
     catch (Exception ex)
     {
         return false;
     }
     return true;
 }
예제 #3
0
 public BOCls_Photo(Object[] pArrPhoto)
 {
     oDBPhotoController = new DBCls_Photos();
     FillInPhoto(pArrPhoto);
     ObjectStatus = (int)PhotoStatus.NotModified;
 }
예제 #4
0
 public BOCls_Photo(String PhotoID)
 {
     oDBPhotoController = new DBCls_Photos();
     GetPhotoByID(PhotoID);
     ObjectStatus = (int)PhotoStatus.NotModified;
 }