Exemplo n.º 1
0
        public void FileUpdate(string filePath)
        {
            _currentPath = filePath;
            SaveFileReader reader = new SaveFileReader(filePath);

            form.UpdateCampaignGrid(CreateCampaignTable(reader.ParseCampaign()));
            form.UpdateAdventureGrid(CreateAdventureTable(reader.ParseAdventure()));
        }
        public void FileUpdate(string filePath)
        {
            if (!_oldPath.Equals(filePath))
            {
                InitializeWatcher(filePath);
            }

            SaveFileReader reader = new SaveFileReader(filePath);

            form.UpdateCampaignGrid(reader.ParseCampaign());
            form.UpdateAdventureGrid(reader.ParseAdventure());
        }