ObjectManager/UI/Process/Windows/UI_Process_Windows_RequirementDetail.xaml.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using ObjectManager.Models;
using ObjectManager.UI.Process.Classes;
using System;
using System.Collections.Generic;
using System.Linq;
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;
using static ObjectManager.Common.MyEnum;
namespace ObjectManager.UI.Process.Windows
{
/// <summary>
/// UI_Process_Windows_RequirementDetail.xaml 的交互逻辑
/// </summary>
public partial class UI_Process_Windows_RequirementDetail : Window
{
private UI_Process_Classes_RequirementDetail_ViewModel vm;
public UI_Process_Windows_RequirementDetail()
{
InitializeComponent();
vm = new UI_Process_Classes_RequirementDetail_ViewModel();
this.DataContext = vm;
}
public UI_Process_Windows_RequirementDetail(RequirementDetailOperation op):this()
{
vm.Op = op;
}
public UI_Process_Windows_RequirementDetail(TB_RequirementDetail model) : this()
{
vm.Op = RequirementDetailOperation.Update;
vm.RequirementDetail = model;
}
private void Button_Cancel_Click(object sender, RoutedEventArgs e)
{
this.DialogResult = false;
}
private void Button_OK_Click(object sender, RoutedEventArgs e)
{
if(OKClick != null)
{
if(vm.Op == RequirementDetailOperation.Add)
{
vm.RequirementDetail.backup1 = Guid.NewGuid().ToString();
}
OKClick(vm, new EventArgs());
后面还有 8 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
