예제 #1
0
        public void ChangeDBPath(String DBFilePath)
        {
            bool wasOpen = _DB.isOpen();
            if (_DB.isOpen())
                _DB.Close();
            _DB = new SkypeDB(DBFilePath);

            if (wasOpen)
                _DB.Open();
        }
예제 #2
0
        public SkypeListener(String DBFilePath, String Username)
        {
            UpdateSkypeTimer           = new Timer(1000);
            UpdateSkypeTimer.AutoReset = true;
            UpdateSkypeTimer.Elapsed  += new ElapsedEventHandler(UpdateSkypeTimer_Elapsed);

            this.Username = Username;

            _DB = new SkypeDB(DBFilePath);
        }
예제 #3
0
        public SkypeListener(String DBFilePath, String Username)
        {
            UpdateSkypeTimer = new Timer(1000);
            UpdateSkypeTimer.AutoReset = true;
            UpdateSkypeTimer.Elapsed += new ElapsedEventHandler(UpdateSkypeTimer_Elapsed);

            this.Username = Username;

            _DB = new SkypeDB(DBFilePath);
        }
예제 #4
0
        public void ChangeDBPath(String DBFilePath)
        {
            bool wasOpen = _DB.isOpen();

            if (_DB.isOpen())
            {
                _DB.Close();
            }
            _DB = new SkypeDB(DBFilePath);

            if (wasOpen)
            {
                _DB.Open();
            }
        }
예제 #5
0
        public SkypeDB(String DBFile)
        {
            try
            {
                _conn = new SQLiteConnection("Data Source=" + DBFile + ";Version=3;Read Only=True;");

                if (Instance == null)
                {
                    Instance = this;
                }
            }
            catch (SQLiteException sex)
            {
                Console.WriteLine(sex.Message);
            }
        }