using ivf_tl_Entity.Entity; using System; using System.Collections.Generic; 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 ivf_tl_Manage.Win { /// /// MessageBoxWindow.xaml 的交互逻辑 /// public partial class MessageBoxWindow : Window { public MessageBoxWindow(string title,string message,Window parent) { InitializeComponent(); this.Owner = parent; //this._title_TextBlock.Text = title; this._message_TextBlock.Text = message; this.Closed += (a, b) => parent.Activate(); } private void Cancel_Click(object sender, RoutedEventArgs e) { this.DialogResult = false; return; } private void Ok_Click(object sender, RoutedEventArgs e) { this.DialogResult = true; return; } } }