12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Input;
- namespace FWindSoft.Wpf.Commands
- {
- public class LibCommands
- {
- static LibCommands()
- {
- /*
- * 困惑,typeof (LibCommands)这个参数没有要求,也不知道怎么使用,但是系统的是这样定义的
- * 也不需要UI空间,如果不写不知道会不会出问题
- */
- Add = new RoutedCommand("添加", typeof (LibCommands));
- Delete = new RoutedCommand("删除", typeof(LibCommands));
- Update = new RoutedCommand("修改", typeof(LibCommands));
- Search = new RoutedCommand("查找", typeof(LibCommands));
- Move = new RoutedCommand("移动", typeof(LibCommands));
- }
- /// <summary>
- /// 增加
- /// </summary>
- public static RoutedCommand Add{get;private set;}
- /// <summary>
- /// 删除
- /// </summary>
- public static RoutedCommand Delete { get; private set; }
- /// <summary>
- /// 修改
- /// </summary>
- public static RoutedCommand Update { get; private set; }
- /// <summary>
- /// 查找
- /// </summary>
- public static RoutedCommand Search { get; private set; }
- /// <summary>
- /// 移动
- /// </summary>
- public static RoutedCommand Move { get; private set; }
- }
- }
|