layouts/header/HeaderPage.xaml.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using tablegen2.logic;
namespace tablegen2.layouts
{
/// <summary>
/// HeaderPage.xaml 的交互逻辑
/// </summary>
public partial class HeaderPage : UserControl
{
#region 依赖属性
public static readonly DependencyProperty EditableProperty;
public static readonly DependencyProperty IsNewFileModeProperty;
static HeaderPage()
{
EditableProperty = DependencyProperty.Register(
"Editable",
typeof(bool),
typeof(HeaderPage),
new FrameworkPropertyMetadata(false),
null);
IsNewFileModeProperty = DependencyProperty.Register(
"IsNewFileMode",
typeof(bool),
typeof(HeaderPage),
new FrameworkPropertyMetadata(false),
null);
}
public bool Editable
{
get { return (bool)GetValue(EditableProperty); }
set { SetValue(EditableProperty, value); }
}
public bool IsNewFileMode
{
get { return (bool)GetValue(IsNewFileModeProperty); }
set { SetValue(IsNewFileModeProperty, value); }
}
#endregion
public List<TableExcelHeader> Headers { get; internal set; }
public string ExcelDir { get; set; }
public string ExcelFullPath { get; internal set; }
public HeaderPage()
{
InitializeComponent();
lv.SelectedChangedEvent += (item) => Editable = item != null && item.Editable;
lv.AddCopyEvent += (item) => itemAddCopyImpl(item);
lv.EditEvent += (item) => itemEditImpl(item);
lv.DeleteEvent += (item) => itemDeleteImpl(item);
}
public void refreshDislpay(List<TableExcelHeader> headers)
{
lv.refreshDisplay(headers);
后面还有 165 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。