Example #1
0
        private void EditItemBtn_Click(object sender, RoutedEventArgs e)
        {
            var temp = this.AllSickBedList.SelectedItem as CommContracts.SickBed;

            if (temp == null)
            {
                return;
            }

            // 新增病床
            var window = new Window();

            EditSickBedView eidtSickBed = new EditSickBedView(temp);

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

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

            EditSickBedView eidtSickBed = new EditSickBedView();

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

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