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; }
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; }
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; }
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); }
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; }
public CMS(DataAccessMode mode) { if (mode == DataAccessMode.Connected) { dbLayer = new DBConnectedMode(); } else { dbLayer = new DBDisconnectedMode(); } }
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; }
public void SwitchStrategy() { CurrentMode = (CurrentMode == DataAccessMode.Connected) ? DataAccessMode.Disconnected : DataAccessMode.Connected; TerminateConnection(); if (CurrentMode == DataAccessMode.Connected) { dbLayer = new DBConnectedMode(); } else { dbLayer = new DBDisconnectedMode(); } InitializeConnection(); }
public void SwitchStrategy(DataAccessMode mode) { if (CurrentMode != mode) { CurrentMode = mode; TerminateConnection(); if (mode == DataAccessMode.Connected) { dbLayer = new DBConnectedMode(); } else { dbLayer = new DBDisconnectedMode(); } InitializeConnection(); } }
/// <summary> /// Constructor /// </summary> /// <param name="idb">abstract database layer</param> public ImageFactory(IDBLayer idb) : base(idb, -1) { }
internal DiskChecker(IDBLayer idb) { }
public TestParameterController(IDBLayer pDBLayer) { __pDB = pDBLayer; }
public PlayersController(IDBLayer context) { _context = context; }
public TestRunController(IDBLayer pDBLayer) { __pDB = pDBLayer; }
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; }
public static void Register(IDBLayer dBLayerToRegister) { dBLayer = dBLayerToRegister ?? throw new ArgumentException("dBLayerToRegister cannot be null"); }
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)); }
public BaseObject(IDBLayer idb, long id) { this.idb = idb; this.id = id; }