using MahApps.Metro.Controls.Dialogs; 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; using WpfTest1.Toolkits; namespace WpfTest1 { /// /// AddPatient.xaml 为病例管理功能中添加病例的界面和逻辑 /// public partial class AddPatient : Window { MainWindow father; public AddPatient(MainWindow father) { this.father = father; InitializeComponent(); } //每输一个姓名摘取其拼音缩写 private void textBoxName_TextChanged(object sender, TextChangedEventArgs e) { string source_text = textBoxName.Text; string result_PY = ""; for (int i = 0;i