Esempio n. 1
0
 public Category(string name, string description, long id, IDBLayer idb, Category parent)
     : base(idb, id)
 {
     this.name = name.Trim();
     this.description = description.Trim();
     this.parent = parent;
 }
Esempio n. 2
0
 public Disk(IDBLayer idb, long id, string name, Image image, DiskType type, Box box)
     : base(idb, id)
 {
     this.name = name;
     this.image = image;
     this.type = type;
     this.box = box;
 }
Esempio n. 3
0
 public File(IDBLayer idb, long id, string name, long size, DateTime date, long attr)
     : base(idb, id)
 {
     this.name = name;
     this.fa = attr;
     this.size = size;
     this.date = date;
 }
Esempio n. 4
0
 public ImageFactoryDVD(IDBLayer idb)
     : base(idb)
 {
     this.AddImageEvent = new AddImageHandler(idb.AddDvdImage);
     this.GetImagesEvent = new GetImagesHandler(idb.GetDvdImages);
     this.DeleteImageEvent = new DeleteImageHandler(idb.DeleteDvdImage);
     this.UpdateImageEvent = new UpdateImageHandler(idb.UpdateDvdImage);
 }
Esempio n. 5
0
 public Image(IDBLayer idb, long id, string name, long picId, EnumImageCategories imageType, bool deleteable)
     : base(idb, id)
 {
     this.name = name;
     this.picId = picId;
     this.imgFact = null;
     this.type = imageType;
     this.deleteable = deleteable;
 }
Esempio n. 6
0
 public CMS(DataAccessMode mode)
 {
     if (mode == DataAccessMode.Connected)
     {
         dbLayer = new DBConnectedMode();
     }
     else
     {
         dbLayer = new DBDisconnectedMode();
     }
 }
Esempio n. 7
0
File: Box.cs Progetto: drme/disks-db
 public Box(String name, String comment, long id, Image back, Image inlay, BoxType type, Image front, IDBLayer idb, Category parent)
     : base(idb, id)
 {
     this.parent = parent;
     this.name = name;
     this.desc = comment;
     this.type = type;
     this.front = front;
     this.back = back;
     this.inlay = inlay;
 }
Esempio n. 8
0
 public void SwitchStrategy()
 {
     CurrentMode = (CurrentMode == DataAccessMode.Connected) ? DataAccessMode.Disconnected : DataAccessMode.Connected;
     TerminateConnection();
     if (CurrentMode == DataAccessMode.Connected)
     {
         dbLayer = new DBConnectedMode();
     }
     else
     {
         dbLayer = new DBDisconnectedMode();
     }
     InitializeConnection();
 }
Esempio n. 9
0
 public void SwitchStrategy(DataAccessMode mode)
 {
     if (CurrentMode != mode)
     {
         CurrentMode = mode;
         TerminateConnection();
         if (mode == DataAccessMode.Connected)
         {
             dbLayer = new DBConnectedMode();
         }
         else
         {
             dbLayer = new DBDisconnectedMode();
         }
         InitializeConnection();
     }
 }
Esempio n. 10
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="idb">abstract database layer</param>
 public ImageFactory(IDBLayer idb)
     : base(idb, -1)
 {
 }
Esempio n. 11
0
 internal DiskChecker(IDBLayer idb)
 {
 }
Esempio n. 12
0
 public TestParameterController(IDBLayer pDBLayer)
 {
     __pDB = pDBLayer;
 }
 public PlayersController(IDBLayer context)
 {
     _context = context;
 }
 public TestRunController(IDBLayer pDBLayer)
 {
     __pDB = pDBLayer;
 }
Esempio n. 15
0
 public Image(IDBLayer idb, long id, string name, long picId, byte[] data, EnumImageCategories imageType, bool deleteable)
     : this(idb, id, name, picId, imageType, deleteable)
 {
     this.image = BuildImage(data);
 }
 public SensorController(IDBLayer pDBLayer)
 {
     __pDB = pDBLayer;
 }
Esempio n. 17
0
 public static void Register(IDBLayer dBLayerToRegister)
 {
     dBLayer = dBLayerToRegister ?? throw new ArgumentException("dBLayerToRegister cannot be null");
 }
Esempio n. 18
0
 public DBLayerItem(String path, String className, IDBLayer layer)
 {
     this.FullPath = Path.GetFileName(path);
     this.ClassName = className;
     this.Layer = layer;
 }
 public EventBookingRepository(IDBLayer IDBLayercs)
 {
     _IDBLayercs = IDBLayercs ?? throw new ArgumentNullException(nameof(IDBLayercs));
 }
Esempio n. 20
0
 public BaseObject(IDBLayer idb, long id)
 {
     this.idb = idb;
     this.id = id;
 }