public BOCls_Photo() { oDBPhotoController = new DBCls_Photos(); ID = ""; PhotoSRC = new Byte[0]; ObjectStatus = (int)UserStatus.New; }
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; }
public BOCls_Photo(Object[] pArrPhoto) { oDBPhotoController = new DBCls_Photos(); FillInPhoto(pArrPhoto); ObjectStatus = (int)PhotoStatus.NotModified; }
public BOCls_Photo(String PhotoID) { oDBPhotoController = new DBCls_Photos(); GetPhotoByID(PhotoID); ObjectStatus = (int)PhotoStatus.NotModified; }