Ejemplo n.º 1
0
        public List<DeviceDTO> GetAllDeviceID()
        {
            Transaction trans = new Transaction();
            List<DeviceDTO> devices;
            DeviceRDG deviceRDG = new DeviceRDG(trans);

            trans.BeginTransaction();
            try
            {
                devices = deviceRDG.GetAllDeviceID();
            }
            catch (Exception e)
            {
                trans.Rollback();
                throw e;
            }
            trans.Commit();

            return devices;
        }
Ejemplo n.º 2
0
 private DeviceRDG MakeDeviceObjct(string DeviceID)
 {
     DeviceRDG deviceRDG = new DeviceRDG();
     deviceRDG.MakeDevice(DeviceID);
     return deviceRDG;
 }
Ejemplo n.º 3
0
 public void MakePerson(string UserName,string Password,DeviceRDG Device)
 {
     this._userName = UserName;
     this._password = Password;
     this._isAdmin = false;
     this._device = Device;
 }