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

            if (temp == null)
            {
                return;
            }

            // 新增人员
            var window = new Window();

            EditEmployeeView eidtEmployee = new EditEmployeeView(temp);

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

            EditEmployeeView eidtEmployee = new EditEmployeeView();

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

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