-
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.
Option to use random quotes with management
- Loading branch information
1 parent
6fe82a3
commit 3966d6e
Showing
18 changed files
with
712 additions
and
377 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
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
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
using Microsoft.Toolkit.Uwp.Notifications; | ||
|
||
namespace TheShivisiApp.Helpers; | ||
namespace TheShivisiApp.Helpers; | ||
|
||
public class PopTheToast { | ||
public static void PopIt(string notifText) => | ||
public static void PopIt(string notifText, string source, int id) => | ||
new ToastContentBuilder() | ||
.AddText("The Shivisi App") | ||
.AddText(!string.IsNullOrWhiteSpace(notifText) ? notifText : "Remember!" + Environment.NewLine + "You're not the one in charge here!") | ||
//.AddHeroImage(new Uri("file:///")) | ||
.AddAppLogoOverride(new Uri("file:///" + Path.GetFullPath("Data/Logo.png")), ToastGenericAppLogoCrop.Circle) | ||
.AddAttributionText("Via TSA") | ||
.AddAttributionText(source) | ||
.AddArgument("Text", notifText) | ||
.AddArgument("Source", source) | ||
.AddArgument("Id", id) | ||
.Show(toast => toast.ExpirationTime = DateTime.Now.AddMinutes(1)); | ||
} |
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,6 @@ | ||
namespace TheShivisiApp.Helpers; | ||
|
||
public static class VersionHelper { | ||
public static Version GetRunningVersion() => | ||
Assembly.GetExecutingAssembly().GetName().Version; | ||
} |
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
Oops, something went wrong.