Plugins_ObjectInfomation/UI/Information/Windows/UI_Information_Windows_Main.xaml.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Plugins_ObjectInformation.Models;
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;
namespace Plugins_ObjectInformation.UI.Information.Windows
{
/// <summary>
/// UI_Information_Windows_Manager.xaml 的交互逻辑
/// </summary>
public partial class UI_Information_Windows_Main : Window
{
public UI_Information_Windows_Main()
{
InitializeComponent();
}
UI.Information.Classes.UI_Information_Classes_Manager_ViewModel vm = null;
private void Window_Loaded(object sender, RoutedEventArgs e)
{
vm = new Classes.UI_Information_Classes_Manager_ViewModel();
this.DataContext = vm;
}
private void Button_Add_Click(object sender, RoutedEventArgs e)
{
//确定当前选中了项目
if(listbox_ObjectList.SelectedItem==null)
{
MessageBox.Show("未选中项目");
return;
}
ObjectManager.Models.TB_Object model = listbox_ObjectList.SelectedItem as ObjectManager.Models.TB_Object;
if(model == null)
{
return;
}
//打开添加窗口
UI_Information_Windows_Manager_AddInfo window = new UI_Information_Windows_Manager_AddInfo(model.AutoID);
if(window.ShowDialog().Value)
{
Common.InformationOP iop = new Common.InformationOP();
//右侧数据切换绑定
vm.ObjectInformationList = iop.GetList().Where(s => s.Object_ID == model.AutoID).ToList();
}
}
后面还有 79 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
