Пример #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
        }
Пример #2
0
 internal dloUserGroup(dloUserGroups groups)
 {
     Id      = Guid.NewGuid().ToString();
     _groups = groups;
     _app    = _groups.Application;
     _rights = new dloUserRights(this);
 }