Exemplo n.º 1
0
        /// <summary>
        /// Инициализирует новый экземпляр класса
        /// </summary>
        public DataBaseManager()
        {
            state = DBState.Default;

            adapter  = new DataBaseAdapter(".", "", "sa", "");
            provider = new DataBaseProvider(adapter);

            saver = new DataBaseSaver();

            is_valid = false;
            timer    = new Timer(TimerCallback, null, 0, 5000);

            slim   = new ReaderWriterLockSlim(LockRecursionPolicy.SupportsRecursion);
            t_slim = new ReaderWriterLockSlim(LockRecursionPolicy.SupportsRecursion);

            DataBase.Initialize();
        }