コード例 #1
0
 private MainCameraViewModel ConstructMainCameraViewModel(DataAccessLayer dataAccessLayer, string uniqueId,
     string vehicleNumber)
 {
     try
     {
         var dbImageResult = dataAccessLayer.GetImageResult(uniqueId);
         return new MainCameraViewModel(vehicleNumber, dbImageResult.ChasisImage, dbImageResult.CarFullImage,
             dbImageResult.DriverImage);
     }
     catch (Exception exception)
     {
         Logger.Error("ConstructMainCameraViewModel failed:", exception);
     }
     return null;
 }
コード例 #2
0
 private MainCameraViewModel ConstructMainCameraViewModel(DataAccessLayer dataAccessLayer, string uniqueId,
     string vehicleNumber)
 {
     var dbImageResult = dataAccessLayer.GetImageResult(uniqueId);
     return new MainCameraViewModel(vehicleNumber, dbImageResult.ChasisImage, dbImageResult.CarFullImage, dbImageResult.DriverImage);
 }