Пример #1
0
        private void EditItemBtn_Click(object sender, RoutedEventArgs e)
        {
            var temp = this.AllTherapyItemList.SelectedItem as CommContracts.TherapyItem;

            if (temp == null)
            {
                return;
            }

            // 新增治疗项目
            var window = new Window();

            EditTherapyItemView eidtTherapyItem = new EditTherapyItemView(temp);

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

            if (bResult.Value)
            {
                MessageBox.Show("治疗项目修改完成!");
                UpdateAllDate();
            }
        }
Пример #2
0
        private void NewItemBtn_Click(object sender, RoutedEventArgs e)
        {
            // 新增治疗项目
            var window = new Window();

            EditTherapyItemView eidtTherapyItem = new EditTherapyItemView();

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

            if (bResult.Value)
            {
                MessageBox.Show("治疗项目新建完成!");
                UpdateAllDate();
            }
        }