510. Araxis Merge File Comparison Report

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

510.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\ModernOdataApp\ViewModels AccountsViewModel.cs Tue Dec 20 19:51:47 2016 UTC
2 Wed Feb 1 19:56:48 2017 UTC

510.2 Comparison summary

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

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

510.4 Active regular expressions

No regular expressions were active.

510.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 rnOdataApp ;        
17   using Mode rnOdataApp .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 > _account s;        
32           pu blic Obser vableColle ction<Acco untsModel>  Accounts        
33           {        
34                get { re turn _acco unts; }        
35                set        
36                {        
37                    if ( value != _ accounts)        
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 the XML  response  and bind t he data to  an 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 ve(AccessT oken, new  string[] {  "Name", " EMailAddre ss1", "Tel ephone1" } , "Account Set");        
52          
53                Accounts  = new Obs ervableCol lection<Ac countsMode l>();        
54          
55                //feed n amespace        
56                XNamespa ce rss = " http://www .w3.org/20 05/Atom";        
57                // d nam espace        
58                XNamespa ce d = "ht tp://schem as.microso ft.com/ado /2007/08/d ataservice s";        
59                // m nam espace        
60                XNamespa ce m = "ht tp://schem as.microso ft.com/ado /2007/08/d ataservice s/metadata ";        
61          
62                // Conve rt the str ing respon se to an x Document.        
63                XDocumen t xdoc = X Document.P arse(Accou ntsRespons eBody.ToSt ring(), Lo adOptions. None);        
64          
65                foreach  (var entry  in xdoc.R oot.Descen dants(rss  + "entry") .Descendan ts(rss + " content"). Descendant s(m + "pro perties"))        
66                {        
67                    Acco untsModel  account=ne w Accounts Model();        
68                    acco unt.Name=  entry.Elem ent(d + "N ame").Valu e ;        
69                    acco unt.Email=  entry.Ele ment(d + " EMailAddre ss1").Valu e;        
70                    acco unt.Phone=  entry.Ele ment(d + " Telephone1 ").Value;            
71                    Acco unts.Add(a ccount);        
72                }                                       
73                return A ccounts;        
74           }        
75          
76           #r egion INot ifyPropert yChanged M embers        
77          
78           pu blic event  PropertyC hangedEven tHandler P ropertyCha nged;        
79          
80           //  Used to n otify Silv erlight th at a prope rty has ch anged.        
81           pr ivate void  NotifyPro pertyChang ed(string  propertyNa me)        
82           {        
83                if (Prop ertyChange d != null)        
84                {        
85                    Prop ertyChange d(this, ne w Property ChangedEve ntArgs(pro pertyName) );        
86                }        
87           }        
88           #e ndregion        
89       }        
90   }