示例#1
0
        private void EditItemBtn_Click(object sender, RoutedEventArgs e)
        {
            var temp = this.AllShiftList.SelectedItem as CommContracts.Shift;

            if (temp == null)
            {
                return;
            }

            // 新增值班时段
            var window = new Window();

            EditShiftView eidtShift = new EditShiftView(temp);

            window.Content = eidtShift;
            window.Width   = 300;
            window.Height  = 200;
            //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();

            EditShiftView eidtShift = new EditShiftView();

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

            if (bResult.Value)
            {
                MessageBox.Show("值班时段新建完成!");
                UpdateAllDate();
            }
        }