540. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2/1/2017 2:56:49 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.

540.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\SampleCode\CS\ModernAndMobileApps\ModernSoapApp\ViewModels TasksViewModel.cs Tue Dec 20 19:51:47 2016 UTC
2 Wed Feb 1 19:56:49 2017 UTC

540.2 Comparison summary

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

540.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

540.4 Active regular expressions

No regular expressions were active.

540.5 Comparison detail

1   // ======= ========== ========== ========== ========== ========== ========== ==        
2   //  This f ile is par t of the M icrosoft D ynamics CR M SDK code  samples.        
3   //        
4   //  Copyri ght (C) Mi crosoft Co rporation.   All righ ts reserve d.        
5   //        
6   //  This s ource code  is intend ed only as  a supplem ent to Mic rosoft        
7   //  Develo pment Tool s and/or o n-line doc umentation .  See the se other        
8   //  materi als for de tailed inf ormation r egarding M icrosoft c ode sample s.        
9   //        
10   //  THIS C ODE AND IN FORMATION  ARE PROVID ED "AS IS"  WITHOUT W ARRANTY OF  ANY        
11   //  KIND,  EITHER EXP RESSED OR  IMPLIED, I NCLUDING B UT NOT LIM ITED TO TH E        
12   //  IMPLIE D WARRANTI ES OF MERC HANTABILIT Y AND/OR F ITNESS FOR  A        
13   //  PARTIC ULAR PURPO SE.        
14   // ======= ========== ========== ========== ========== ========== ========== ==        
15          
16   using Syst em;        
17   using Syst em.Collect ions.Gener ic;        
18   using Syst em.Collect ions.Objec tModel;        
19   using Syst em.Compone ntModel;        
20   using Syst em.Linq;        
21   using Syst em.Text;        
22   using Syst em.Threadi ng.Tasks;        
23   using Mode rnSoapApp. Models;        
24   using Mode rnSoapApp;        
25   using Syst em.Xml.Lin q;        
26          
27   namespace  Sample.Vie wModels        
28   {        
29       public  class Tas ksViewMode l : INotif yPropertyC hanged        
30       {        
31           pr ivate Obse rvableColl ection<Tas ksModel> t asks;        
32           pu blic Obser vableColle ction<Task sModel> Ta sks        
33           {        
34                get { re turn tasks ; }        
35                set        
36                {        
37                    if ( value != t asks)        
38                    {        
39                         tasks = va lue;        
40                         NotifyProp ertyChange d("Tasks") ;        
41                    }        
42                }        
43           }        
44          
45           // / <summary >        
46           // / Fetch Ta sks detail s.        
47           // / Extracts  Tasks det ails from  XML respon se and bin ds data to  Observabl e Collecti on.        
48           // / </summar y>          
49           pu blic async  Task<Obse rvableColl ection<Tas ksModel>>  LoadTasksD ata(string  AccessTok en)        
50           {        
51                var Task sResponseB ody = awai t HttpRequ estBuilder .RetrieveM ultiple(Ac cessToken,  new strin g[] { "sub ject", "sc heduledsta rt" }, "ta sk");        
52          
53                Tasks =  new Observ ableCollec tion<Tasks Model>();        
54          
55                // Conve rting resp onse strin g to xDocu ment.        
56                XDocumen t xdoc = X Document.P arse(Tasks ResponseBo dy.ToStrin g(), LoadO ptions.Non e);        
57                XNamespa ce s = "ht tp://schem as.xmlsoap .org/soap/ envelope/" ;//Envelop  namespace  s        
58                XNamespa ce a = "ht tp://schem as.microso ft.com/xrm /2011/Cont racts";//a  namespace        
59                XNamespa ce b = "ht tp://schem as.datacon tract.org/ 2004/07/Sy stem.Colle ctions.Gen eric";//b  namespace        
60          
61                foreach  (var entit y in xdoc. Descendant s(s + "Bod y").Descen dants(a +  "Entities" ).Descenda nts(a + "E ntity"))        
62                {        
63                    Task sModel tas k = new Ta sksModel() ;        
64                    fore ach (var K eyvaluePai r in entit y.Descenda nts(a + "K eyValuePai rOfstringa nyType"))        
65                    {                             
66                         if (Keyval uePair.Ele ment(b + " key").Valu e == "subj ect")        
67                         {        
68                             task.S ubject = ( string)Key valuePair. Element(b  + "value") .Value;        
69                         }        
70                         else if (K eyvaluePai r.Element( b + "key") .Value ==  "scheduled start")        
71                         {        
72                             task.S cheduledSt artDate =  DateTime.P arse(Keyva luePair.El ement(b +  "value").V alue);        
73                         }        
74          
75                    }        
76                    Task s.Add(task );        
77                }        
78                return T asks;        
79           }        
80          
81           #r egion INot ifyPropert yChanged M embers        
82          
83           pu blic event  PropertyC hangedEven tHandler P ropertyCha nged;        
84          
85           //  Used to n otify Silv erlight th at a prope rty has ch anged.        
86           pr ivate void  NotifyPro pertyChang ed(string  propertyNa me)        
87           {        
88                if (Prop ertyChange d != null)        
89                {        
90                    Prop ertyChange d(this, ne w Property ChangedEve ntArgs(pro pertyName) );        
91                }        
92           }        
93           #e ndregion        
94       }        
95   }