Beispiel #1
0
        /// <summary>
        /// Initialize application global variables
        /// </summary>
        public static void Init(ISettingRepository setttingRepository)
        {
            CurrentFolders folder = new CurrentFolders(setttingRepository);

            Folders = folder;
            Folders.Init();

            CurrentDevice device = new CurrentDevice(setttingRepository, Folders.DevicesGuid);

            Device = device;
            Device.Init();

            CurrentUser userSystem = new CurrentUser(setttingRepository, Folders.UsersGuid);

            UserSystem = userSystem;
            UserSystem.Init();

            CurrentUser user = new CurrentUser(setttingRepository, Folders.UsersGuid);

            User = user;
            User.Init();

            SettingLog log = new SettingLog(setttingRepository);

            Log = log;
            Log.Init();
        }