Example #1
0
        //private IProgressReporterService ProgressReporter
        //{
        //    get
        //    {
        //        return (IProgressReporterService)GetService(typeof(IProgressReporterService));
        //    }
        //}

        //public ILoggingService LoggingService
        //{
        //    get
        //    {
        //        return (ILoggingService)GetService(typeof(ILoggingService));
        //    }
        //}
        #endregion

        #region Constructors
        public dloDataApplication()
        {
            //Create a new instance of our service container
            ServiceContainer = new System.ComponentModel.Design.ServiceContainer();

            IsLoaded = false;

            //  AuthTypes = RuntimeAuthTypes.None;

            SyncStatus = Data.SyncStatus.Unknown;

            DbInfo = new dloDbInfo(this);

            Configuration = new Configuration();

            _users   = new dloUsers(this);
            _groups  = new dloUserGroups(this);
            _devices = new dloDevices(this);

            Queries = new DatabaseQueries();
            //CurrentUser = new dloUser(_users);

            //_currentDevice = new dloDevice(this);

            //DoHouseKeeping();

            //Register services
        }
Example #2
0
        internal dloUser(dloUsers users)
        {
            Id      = Guid.NewGuid().ToString();
            _users  = users;
            _app    = _users.Application;
            _rights = new dloUserRights(this);

            EditMode = ObjectStates.None;
        }