2026-01-26 14:51:28 +09:00

35 lines
960 B
C#

/*
* Copyright (c) 2025 LG Electronics Inc.
* SPDX-License-Identifier: LicenseRef-LGE-Proprietary
*/
using System.Windows;
using System.Windows.Input;
namespace VisionCommonUI {
public partial class MessageBoxError : Window {
public MessageBoxError() {
InitializeComponent();
}
public void Show(string statusMsg) {
tbStatusMessage.Text = statusMsg;
this.Show();
}
public void ShowDialog(string statusMsg) {
tbStatusMessage.Text = statusMsg;
this.ShowDialog();
}
private void Button_Click_Error(object sender, RoutedEventArgs e) {
tbStatusMessage.Text = string.Empty;
this.Close();
}
private void MessageBox_KeyDown(object sender, KeyEventArgs e) {
if (e.Key == Key.Enter || e.Key == Key.Escape) {
Button_Click_Error(sender, e);
}
}
}
}