940. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2/1/2017 2:57:36 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

940.1 Files compared

# Location File Last Modified
1 C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM\trunk\SDK\Tools\WebResourceUtility\ViewModels RelayCommand.cs Tue Dec 20 19:52:28 2016 UTC
2 Wed Feb 1 19:57:36 2017 UTC

940.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 0 0
Removed 1 126

940.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

940.4 Active regular expressions

No regular expressions were active.

940.5 Comparison detail

1   using Syst em;        
2   using Syst em.Collect ions.Gener ic;        
3   using Syst em.Diagnos tics;        
4   using Syst em.Linq;        
5   using Syst em.Text;        
6   using Syst em.Windows .Input;        
7          
8   namespace  Microsoft. Crm.Sdk.Sa mples        
9   {        
10       public  class Rel ayCommand  : ICommand        
11       {        
12           #r egion Fiel ds        
13          
14           re adonly Act ion<object > _execute ;        
15           re adonly Pre dicate<obj ect> _canE xecute;        
16          
17           #e ndregion / / Fields        
18          
19           #r egion Cons tructors        
20          
21           // / <summary >        
22           // / Creates  a new comm and that c an always  execute.        
23           // / </summar y>        
24           // / <param n ame="execu te">The ex ecution lo gic.</para m>        
25           pu blic Relay Command(Ac tion<objec t> execute )        
26                : this(e xecute, nu ll)        
27           {        
28           }        
29          
30           // / <summary >        
31           // / Creates  a new comm and.        
32           // / </summar y>        
33           // / <param n ame="execu te">The ex ecution lo gic.</para m>        
34           // / <param n ame="canEx ecute">The  execution  status lo gic.</para m>        
35           pu blic Relay Command(Ac tion<objec t> execute , Predicat e<object>  canExecute )        
36           {        
37                if (exec ute == nul l)        
38                    thro w new Argu mentNullEx ception("e xecute");        
39          
40                _execute  = execute ;        
41                _canExec ute = canE xecute;        
42           }        
43          
44           #e ndregion / / Construc tors        
45          
46           #r egion ICom mand Membe rs        
47          
48           [D ebuggerSte pThrough]        
49           pu blic bool  CanExecute (object pa rameter)        
50           {        
51                return _ canExecute  == null ?  true : _c anExecute( parameter) ;        
52           }        
53          
54           pu blic event  EventHand ler CanExe cuteChange d        
55           {        
56                add { Co mmandManag er.Requery Suggested  += value;  }        
57                remove {  CommandMa nager.Requ erySuggest ed -= valu e; }        
58           }        
59          
60           pu blic void  Execute(ob ject param eter)        
61           {        
62                _execute (parameter );        
63           }                 
64          
65           #e ndregion / / ICommand  Members        
66       }        
67          
68       public  class Rel ayCommand< T> : IComm and        
69       {        
70           #r egion Fiel ds        
71          
72           re adonly Act ion<T> _ex ecute;        
73           re adonly Pre dicate<T>  _canExecut e;        
74          
75           #e ndregion / / Fields        
76          
77           #r egion Cons tructors        
78          
79           // / <summary >        
80           // / Creates  a new comm and that c an always  execute.        
81           // / </summar y>        
82           // / <param n ame="execu te">The ex ecution lo gic.</para m>        
83           pu blic Relay Command(Ac tion<T> ex ecute)        
84                : this(e xecute, nu ll)        
85           {        
86           }        
87          
88           // / <summary >        
89           // / Creates  a new comm and.        
90           // / </summar y>        
91           // / <param n ame="execu te">The ex ecution lo gic.</para m>        
92           // / <param n ame="canEx ecute">The  execution  status lo gic.</para m>        
93           pu blic Relay Command(Ac tion<T> ex ecute, Pre dicate<T>  canExecute )        
94           {        
95                if (exec ute == nul l)        
96                    thro w new Argu mentNullEx ception("e xecute");        
97          
98                _execute  = execute ;        
99                _canExec ute = canE xecute;        
100           }        
101          
102           #e ndregion / / Construc tors        
103          
104           #r egion ICom mand Membe rs        
105          
106           [D ebuggerSte pThrough]        
107           pu blic bool  CanExecute (object pa rameter)        
108           {        
109                return _ canExecute  == null ?  true : _c anExecute( (T)paramet er);        
110           }        
111          
112           pu blic event  EventHand ler CanExe cuteChange d        
113           {        
114                add { Co mmandManag er.Requery Suggested  += value;  }        
115                remove {  CommandMa nager.Requ erySuggest ed -= valu e; }        
116           }        
117          
118           pu blic void  Execute(ob ject param eter)        
119           {        
120                _execute ((T)parame ter);        
121           }        
122          
123           #e ndregion / / ICommand  Members        
124       }        
125          
126   }