| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- 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
- {
- /// <summary>
- /// MessageBoxWindow.xaml 的交互逻辑
- /// </summary>
- 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;
- }
- }
- }
|