// TODO: Document public static void CreateEmptyStoredAppInfo(string appPackageName, string appName, string pathStorage) { StoredAppInfo appInfo = new StoredAppInfo(appPackageName, appName); WriteStoredAppInfoToStorage(appInfo, pathStorage); }
// TODO: Document public static void UpdateStoredAppInfo(StoredAppInfo appInfo, string pathStorage) { WriteStoredAppInfoToStorage(appInfo, pathStorage); }
// TODO: Document private static void WriteStoredAppInfoToStorage(StoredAppInfo storedAppInfo, string pathStorage) { XmlSerializer xmlSerializer = new XmlSerializer(typeof(StoredAppInfo)); using (StreamWriter writer = new StreamWriter(Path.Combine(GetAppDirPathInStorage(storedAppInfo.AppName, pathStorage), FILE_NAME_APP_INFO), false)) { xmlSerializer.Serialize(writer, storedAppInfo); } }