コード例 #1
0
 public void Log(string description, Exception ex = null)
 {
     LocalPersistenceStrategiesFactory.GetLogPersistenceStrategy().Add(
         new Log()
     {
         Description         = description,
         DateTime            = DateTime.Now,
         ExceptionMessage    = (ex == null || ex.Message == null) ? "" : ex.Message.ToString(),
         ExceptionStackTrace = ex == null ? "" : ex.StackTrace.ToString()
     });
 }
コード例 #2
0
 public List <Barcodes> GetBarcodes()
 {
     return(LocalPersistenceStrategiesFactory.GetBarcodesPersistanceStrategy().GetCollection().ToList());
 }
コード例 #3
0
 public void DeleteBarcode(Barcodes barcode)
 {
     LocalPersistenceStrategiesFactory.GetBarcodesPersistanceStrategy().Delete(barcode);
 }
コード例 #4
0
 public void EditBarcode(Barcodes barcode)
 {
     LocalPersistenceStrategiesFactory.GetBarcodesPersistanceStrategy().Edit(barcode);
 }
コード例 #5
0
 public void DeleteJobShippingLabelColor(JobShippingLabelColor jobShippingLabelColor)
 {
     LocalPersistenceStrategiesFactory.GetJobShippingLabelColorPersistenceStrategy().Delete(jobShippingLabelColor);
 }
コード例 #6
0
 public List <JobShippingLabelColor> GetJobShippingLabelColors()
 {
     return(LocalPersistenceStrategiesFactory.GetJobShippingLabelColorPersistenceStrategy().GetCollection().ToList());
 }
コード例 #7
0
 public void EditJobShippingLabelColor(JobShippingLabelColor jobShippingLabelColor)
 {
     LocalPersistenceStrategiesFactory.GetJobShippingLabelColorPersistenceStrategy().Edit(jobShippingLabelColor);
 }
コード例 #8
0
 public FacadeController(LocalPersistenceStrategiesFactory localPersistenceStrategiesFactory, OnlinePersistenceStrategiesFactory onlinePersistenceStrategiesFactory)
 {
     this.LocalPersistenceStrategiesFactory  = localPersistenceStrategiesFactory;
     this.OnlinePersistenceStrategiesFactory = onlinePersistenceStrategiesFactory;
 }
コード例 #9
0
 public void EditPrinterStatus(Printer printer)
 {
     LocalPersistenceStrategiesFactory.GetPrinterPersistenceStrategy().Edit(printer);
 }
コード例 #10
0
 public List <Printer> GetPrintersStatusFromLocalDataSource()
 {
     return(new List <Printer>(LocalPersistenceStrategiesFactory.GetPrinterPersistenceStrategy().GetCollection()));
 }
コード例 #11
0
 public void AddRegisteredTag(RegisteredTag registeredTag)
 {
     LocalPersistenceStrategiesFactory.GetRegisteredTagPersistenceStrategy().Add(registeredTag);
 }
コード例 #12
0
 public List <RegisteredTag> GetRegisteredTags()
 {
     return(new List <RegisteredTag>(LocalPersistenceStrategiesFactory.GetRegisteredTagPersistenceStrategy().GetCollection()));
 }