コード例 #1
0
        public static async Task <string> DeSerializeDinner(String fileName)
        {
            try
            {
                StorageFile localFile = await ApplicationData.Current.LocalFolder.GetFileAsync(fileName);

                return(await FileIO.ReadTextAsync(localFile));
            }
            catch (FileNotFoundException ex)
            {
                MessageDialogHelper.ShowD("Første gang der loades? Tilføj Husinformationer og gem for at kunne loade", "Fil findes ikke!");
                return(null);
            }
        }