using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace JtkPcClientWpf {
    /// <summary>
    /// AlertWindow.xaml에 대한 상호 작용 논리
    /// </summary>
    public partial class AlertWindow : Window, INotifyPropertyChanged {
        public event PropertyChangedEventHandler PropertyChanged;

        private string alertTitle;
        public string AlertTitle {
            get => alertTitle;
            set { alertTitle = value; PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("AlertTitle")); }
        }

        private string alertText;
        public string AlertText {
            get => alertText;
            set { alertText = value; PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("AlertText")); }
        }

        public AlertWindow(string title, string text) {
            InitializeComponent();
            AlertTitle = title;
            AlertText = text;
        }

        private void Button_Click(object sender, RoutedEventArgs e) {
            Close();
        }
    }
}
