Example #1
0
        public static void PluginLoadingFailed(PluginLoadingFailedException ex)
        {
            Debug.Assert(ex != null);
            var message = ex.InnerException?.Message ?? "No Message Provided";

            NotifierFlyout.ShowNotification("Plugins not loaded", $"We could not load the plugins. Here's the error message:\n{message}");
        }
Example #2
0
 public static async Task ShowNotification(string title, string body, TimeSpan timeout)
 {
     using (var notifierWindow = new NotifierFlyout(title, body, timeout))
         await notifierWindow.ShowNotification();
 }
Example #3
0
 public static void ShowOperationCanceled() => NotifierFlyout.ShowNotification("Canceled", "You canceled the task.");
Example #4
0
 public static void ShowImageCopiedConfirmation() => NotifierFlyout.ShowNotification("Image copied!", "The image has been copied to your clipboard.");
Example #5
0
 public static void CopyingFilePathFailed()
 {
     NotifierFlyout.ShowNotification("Could not copy file path :(", $"We could not copy the file path to your clipboard. Please try again!");
 }
Example #6
0
 public static void ShowFilePathCopyConfirmation() => NotifierFlyout.ShowNotification("File path copied!", "The file path has been copied to your clipboard.");
Example #7
0
 public static void ShowCopyConfirmation(string text) => NotifierFlyout.ShowNotification("Link copied!", "The link has been copied to your clipboard.");
Example #8
0
 public static void CopyingFailed(string text)
 {
     NotifierFlyout.ShowNotification("Could not copy link :(", $"We could not copy the link to your image to your clipboard.");
 }
Example #9
0
 public static void SettingsUpdated() => NotifierFlyout.ShowNotification("Settings Updated", $"HolzShots has detected and loaded new settings.");