void removeAppFromDIBVERFile() { Dictionary <string, int> versionsData = DIBVERHandler.GetVersionsData(Paths.DIBVER_FILE_PATH); if (versionsData.ContainsKey(appName)) { versionsData.Remove(appName); } DIBVERHandler.SaveVersionsData(Paths.DIBVER_FILE_PATH, versionsData); }
void updateAppVersion() { int currentVersion = getVersion(); versionsData = DIBVERHandler.GetVersionsData(Paths.DIBVER_FILE_PATH); if (versionsData.ContainsKey(appName)) { versionsData[appName] = currentVersion; } else { versionsData.Add(appName, currentVersion); } DIBVERHandler.SaveVersionsData(Paths.DIBVER_FILE_PATH, versionsData); }