コード例 #1
0
        private void EditItemBtn_Click(object sender, RoutedEventArgs e)
        {
            var temp = this.AllJobList.SelectedItem as CommContracts.Job;

            if (temp == null)
            {
                return;
            }

            // 新增职位
            var window = new Window();

            EditJobView eidtJob = new EditJobView(temp);

            window.Content = eidtJob;
            window.Width   = 520;
            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();

            EditJobView eidtJob = new EditJobView();

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

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