diff --git a/ComTransfer/View/TaskWindow.xaml.cs b/ComTransfer/View/TaskWindow.xaml.cs
index 7d32e8b..c7c2a70 100644
--- a/ComTransfer/View/TaskWindow.xaml.cs
+++ b/ComTransfer/View/TaskWindow.xaml.cs
@@ -7,11 +7,18 @@
namespace ComTransfer
{
///
- /// ConfigWindow.xaml 的交互逻辑
+ /// 计划任务修改窗口
///
public partial class TaskWindow : Window
{
+ ///
+ /// 计划任务对象列表
+ ///
public ObservableCollection TaskList { get; set; }
+ ///
+ /// 构建函数
+ ///
+ /// 父窗口对象
public TaskWindow(Window window)
{
Owner = window;
@@ -23,6 +30,11 @@ public TaskWindow(Window window)
InitializeComponent();
}
+ ///
+ /// 窗口关闭事件
+ ///
+ /// 事件对象
+ /// 事件参数
private void Window_Closing(object sender, CancelEventArgs e)
{
FocusManager.SetFocusedElement(this, this);
@@ -31,11 +43,21 @@ private void Window_Closing(object sender, CancelEventArgs e)
TaskManager.SaveFailFileData(TaskManager.Instance.FailFileList);
}
+ ///
+ /// 添加按钮点击事件
+ ///
+ /// 事件对象
+ /// 事件参数
private void Button_Add_Click(object sender, RoutedEventArgs e)
{
TaskList.Add(new TaskNode());
}
+ ///
+ /// 删除按钮点击事件
+ ///
+ /// 事件对象
+ /// 事件参数
private void Button_Delete_Click(object sender, RoutedEventArgs e)
{
TaskList.Remove(ListBox_Task.SelectedItem as TaskNode);