Exemplo n.º 1
0
        private void EditItemBtn_Click(object sender, RoutedEventArgs e)
        {
            var temp = this.AllPatientList.SelectedItem as CommContracts.Patient;

            if (temp == null)
            {
                return;
            }

            // 新增患者
            var window = new Window();

            EditPatientView eidtPatient = new EditPatientView(temp);

            window.Content = eidtPatient;
            window.Width   = 400;
            window.Height  = 500;
            //window.ResizeMode = ResizeMode.NoResize;
            bool?bResult = window.ShowDialog();

            if (bResult.Value)
            {
                MessageBox.Show("患者修改完成!");
                UpdateAllDate();
            }
        }
Exemplo n.º 2
0
        private void NewItemBtn_Click(object sender, RoutedEventArgs e)
        {
            // 新增患者
            var window = new Window();

            EditPatientView eidtPatient = new EditPatientView();

            window.Content = eidtPatient;
            window.Width   = 400;
            window.Height  = 500;
            //window.ResizeMode = ResizeMode.NoResize;
            bool?bResult = window.ShowDialog();

            if (bResult.Value)
            {
                MessageBox.Show("患者新建完成!");
                UpdateAllDate();
            }
        }