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

539.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 AccountsViewModel.cs Tue Dec 20 19:51:47 2016 UTC
2 Wed Feb 1 19:56:49 2017 UTC

539.2 Comparison summary

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

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

539.4 Active regular expressions

No regular expressions were active.

539.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 Mode rnSoapApp;        
17   using Mode rnSoapApp. Models;        
18   using Syst em;        
19   using Syst em.Collect ions.Gener ic;        
20   using Syst em.Collect ions.Objec tModel;        
21   using Syst em.Compone ntModel;        
22   using Syst em.Linq;        
23   using Syst em.Text;        
24   using Syst em.Threadi ng.Tasks;        
25   using Syst em.Xml.Lin q;        
26          
27   namespace  Sample.Vie wModels        
28   {        
29       public  class Acc ountsViewM odel : INo tifyProper tyChanged        
30       {        
31           pr ivate Obse rvableColl ection<Acc ountsModel > accounts ;        
32           pu blic Obser vableColle ction<Acco untsModel>  Accounts        
33           {        
34                get { re turn accou nts; }        
35                set        
36                {        
37                    if ( value != a ccounts)        
38                    {        
39                         accounts =  value;        
40                         NotifyProp ertyChange d("Account s");        
41                    }        
42                }        
43           }        
44          
45           // / <summary >        
46           // / Fetch Ac counts det ails.        
47           // / Extracts  Accounts  details fr om XML res ponse and  binds data  to Observ able Colle ction.        
48           // / </summar y>            
49           pu blic async  Task<Obse rvableColl ection<Acc ountsModel >> LoadAcc ountsData( string Acc essToken)        
50           {        
51                var Acco untsRespon seBody = a wait HttpR equestBuil der.Retrie veMultiple (AccessTok en, new st ring[] { " name", "em ailaddress 1", "telep hone1" },  "account") ;        
52          
53                Accounts  = new Obs ervableCol lection<Ac countsMode l>();        
54          
55                // Conve rting resp onse strin g to xDocu ment.        
56                XDocumen t xdoc = X Document.P arse(Accou ntsRespons eBody.ToSt ring(), Lo adOptions. None);        
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                    Acco untsModel  account =  new Accoun tsModel();        
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 == "name ")        
67                         {        
68                             accoun t.Name = K eyvaluePai r.Element( b + "value ").Value;        
69                         }        
70                         else if (K eyvaluePai r.Element( b + "key") .Value ==  "emailaddr ess1")        
71                         {        
72                             accoun t.Email =  KeyvaluePa ir.Element (b + "valu e").Value;        
73                         }        
74                         else if (K eyvaluePai r.Element( b + "key") .Value ==  "telephone 1")        
75                         {        
76                             accoun t.Phone =  KeyvaluePa ir.Element (b + "valu e").Value;        
77                         }        
78                    }        
79                    Acco unts.Add(a ccount);        
80                }        
81                return A ccounts;        
82           }        
83          
84           #r egion INot ifyPropert yChanged M embers        
85          
86           pu blic event  PropertyC hangedEven tHandler P ropertyCha nged;        
87          
88           //  Used to n otify Silv erlight th at a prope rty has ch anged.        
89           pr ivate void  NotifyPro pertyChang ed(string  propertyNa me)        
90           {        
91                if (Prop ertyChange d != null)        
92                {        
93                    Prop ertyChange d(this, ne w Property ChangedEve ntArgs(pro pertyName) );        
94                }        
95           }        
96           #e ndregion        
97       }        
98   }        
99