예제 #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}");
        }
예제 #2
0
 public static async Task ShowNotification(string title, string body, TimeSpan timeout)
 {
     using (var notifierWindow = new NotifierFlyout(title, body, timeout))
         await notifierWindow.ShowNotification();
 }
예제 #3
0
 public static void ShowOperationCanceled() => NotifierFlyout.ShowNotification("Canceled", "You canceled the task.");
예제 #4
0
 public static void ShowImageCopiedConfirmation() => NotifierFlyout.ShowNotification("Image copied!", "The image has been copied to your clipboard.");
예제 #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!");
 }
예제 #6
0
 public static void ShowFilePathCopyConfirmation() => NotifierFlyout.ShowNotification("File path copied!", "The file path has been copied to your clipboard.");
예제 #7
0
 public static void ShowCopyConfirmation(string text) => NotifierFlyout.ShowNotification("Link copied!", "The link has been copied to your clipboard.");
예제 #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.");
 }
예제 #9
0
 public static void SettingsUpdated() => NotifierFlyout.ShowNotification("Settings Updated", $"HolzShots has detected and loaded new settings.");