예제 #1
0
        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);
        }
예제 #2
0
        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);
        }