-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from symptum/dev
Editor v0.0.5
- Loading branch information
Showing
98 changed files
with
1,923 additions
and
927 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Symptum.Common.Helpers; | ||
using Symptum.Core.Subjects.Books; | ||
|
||
namespace Symptum.Common; | ||
|
||
public class Bootstrapper | ||
{ | ||
public static async Task InitializeAsync() | ||
{ | ||
await PackageHelper.InitializeAsync(); | ||
StorageHelper.Initialize(); | ||
try | ||
{ | ||
var file = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Assets/Books/First Year Books.csv")); | ||
string content = await FileIO.ReadTextAsync(file); | ||
BookStore.LoadBooks(content); | ||
file = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Assets/Books/Second Year Books.csv")); | ||
content = await FileIO.ReadTextAsync(file); | ||
BookStore.LoadBooks(content); | ||
file = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Assets/Books/Third Year Books.csv")); | ||
content = await FileIO.ReadTextAsync(file); | ||
BookStore.LoadBooks(content); | ||
file = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Assets/Books/Final Year Books.csv")); | ||
content = await FileIO.ReadTextAsync(file); | ||
BookStore.LoadBooks(content); | ||
} | ||
catch { } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.