ObjectManager/UI/Process/Windows/UI_Process_Windows_Edit.xaml.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using ObjectManager.Common;
using ObjectManager.Models;
using ObjectManager.UI.Process.Classes;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Data.Entity;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ObjectManager.UI.Process.Windows
{
    /// <summary>
    /// UI_Process_Windows_Edit.xaml 的交互逻辑
    /// </summary>
    public partial class UI_Process_Windows_Edit : Window
    {
        private UI_Process_Classes_Edit_ViewModel vm = null;

        

        public UI_Process_Windows_Edit()
        {
            InitializeComponent();
        }

        public UI_Process_Windows_Edit(TB_Requirement model):this()
        {
            vm = new UI_Process_Classes_Edit_ViewModel();
            vm.Requirement = model;
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            vm.CheckedRequirementProcessList = new ObservableCollection<TB_RequirementProcess>(vm.Requirement.TB_RequirementProcess);

            //获得未选中列表
            DBContext dbc = new DBContext();
            List<TB_Process> processList = dbc.TB_Process.ToList();
            ConvertHelper ch = new ConvertHelper();
            List<TB_RequirementProcess> uncheckedList = ch.ConvertProcessToRequirementProcess(processList);
            vm.UncheckedRequirementProcessList = new ObservableCollection<TB_RequirementProcess>(uncheckedList);

            this.DataContext = vm;

        }


        int a = 1;
        private void lbi_PreviewDragOver(object sender, DragEventArgs e)
后面还有 138 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。