/* * Copyright (c) 2025 LG Electronics Inc. * SPDX-License-Identifier: LicenseRef-LGE-Proprietary */ using Aurora; using Aurora.Api.Control; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AuroraUIComponent.Dialog { public class MessageUtil { public static void ShowSaveSuccessDialog() { CreateAndShowMessageDialog("Save", "Success"); } public static void ShowSaveFailedDialog() { CreateAndShowMessageDialog("Save", "Failed"); } public static void CreateAndShowMessageDialog(string title, string message) { var _title = Application.Current.FindStrToken(title); var _message = Application.Current.FindStrToken(message); MessageDialog.Show(Application.Current.MainWindow, _title, _message); } public static bool ShowYesNoMessageDialog(string title, string message) { var _title = Application.Current.FindStrToken(title); var _message = Application.Current.FindStrToken(message); var result = MessageDialog.Show(Application.Current.MainWindow, _title, _message, MessageDialog.Type.AffirmativeAndNegative); if (result == MessageDialog.Result.Negative) { return false; } return true; } } }