예제 #1
0
        public void CheckForUpdate()
        {
            // Get timestamps
            DateTime      currentUpdate = SQLiteHandler.GetUpdateTimestamp();
            List <string> tables        = MySQLHandler.CheckForUpdate();

            foreach (string table in tables)
            {
                string[] values = table.Split('|');
                DateTime update;
                if (DateTime.TryParse(values[1], out update))
                {
                    if (update < currentUpdate)
                    {
                        return;
                    }

                    UpdateTable(values);
                }
                else
                {
                    UpdateTable(values);
                }
            }
        }