Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using Com.Piwigo.Lib.IService; |
---|
4 | using Com.Piwigo.Wpf.DTO; |
---|
5 | using Com.Piwigo.Lib.DTO; |
---|
6 | using Com.Piwigo.Wpf.DTO.Helper; |
---|
7 | using Com.Piwigo.Wpf.Helper; |
---|
8 | using Com.Piwigo.Wpf.Service; |
---|
9 | using System.Windows.Input; |
---|
10 | |
---|
11 | namespace Com.Piwigo.Wpf.Command |
---|
12 | { |
---|
13 | public static class PwgCmdDeleteTrace |
---|
14 | { |
---|
15 | public static DelegateCommand Command = new DelegateCommand(Execute, CanExecute); |
---|
16 | |
---|
17 | private static void Execute(object obj) |
---|
18 | { |
---|
19 | if (PwgModelManager.Instance.lstMsgInfo != null) |
---|
20 | { |
---|
21 | PwgModelManager.Instance.lstMsgInfo.Clear(); |
---|
22 | } |
---|
23 | } |
---|
24 | |
---|
25 | private static bool CanExecute(object obj) |
---|
26 | { |
---|
27 | bool ret = false; |
---|
28 | if (PwgModelManager.Instance.lstMsgInfo != null) |
---|
29 | { |
---|
30 | ret = (PwgModelManager.Instance.lstMsgInfo.Count >= 0); |
---|
31 | } |
---|
32 | return ret; |
---|
33 | } |
---|
34 | } |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.