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

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

511.2 Comparison summary

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

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

511.4 Active regular expressions

No regular expressions were active.

511.5 Comparison detail

1   //  Copyri ght (C) Mi crosoft Co rporation.   All righ ts reserve d.        
2   //        
3   //  This s ource code  is intend ed only as  a supplem ent to Mic rosoft        
4   //  Develo pment Tool s and/or o n-line doc umentation .  See the se other        
5   //  materi als for de tailed inf ormation r egarding M icrosoft c ode sample s.        
6   //        
7   //  THIS C ODE AND IN FORMATION  ARE PROVID ED "AS IS"  WITHOUT W ARRANTY OF  ANY        
8   //  KIND,  EITHER EXP RESSED OR  IMPLIED, I NCLUDING B UT NOT LIM ITED TO TH E        
9   //  IMPLIE D WARRANTI ES OF MERC HANTABILIT Y AND/OR F ITNESS FOR  A        
10   //  PARTIC ULAR PURPO SE.        
11   // ======= ========== ========== ========== ========== ========== ========== ==        
12          
13   using Syst em;        
14   using Syst em.Collect ions.Gener ic;        
15   using Syst em.Collect ions.Objec tModel;        
16   using Syst em.Compone ntModel;        
17   using Syst em.Linq;        
18   using Syst em.Text;        
19   using Syst em.Threadi ng.Tasks;        
20   using Mode rnOdataApp .Models;        
21   using Mode rnOdataApp ;        
22   using Syst em.Xml.Lin q;        
23          
24          
25   namespace  Sample.Vie wModels        
26   {        
27       public  class Tas ksViewMode l : INotif yPropertyC hanged        
28       {        
29           pr ivate Obse rvableColl ection<Tas ksModel> _ tasks;        
30           pu blic Obser vableColle ction<Task sModel> Ta sks        
31           {        
32                get { re turn _task s; }        
33                set        
34                {        
35                    if ( value != _ tasks)        
36                    {        
37                         _tasks = v alue;        
38                         NotifyProp ertyChange d("Tasks") ;        
39                    }        
40                }        
41           }        
42          
43           // / <summary >        
44           // / Fetch Ta sks detail s.        
45           // / Extracts  Tasks det ails from  the XML re sponse and  binds dat a to obser vable coll ection.        
46           // / </summar y>          
47           pu blic async  Task<Obse rvableColl ection<Tas ksModel>>  LoadTasksD ata(string  AccessTok en)        
48           {        
49                var Task sResponseB ody = awai t HttpRequ estBuilder .Retrieve( AccessToke n, new str ing[] { "S ubject", " ScheduledS tart" }, " TaskSet");        
50                Tasks =  new Observ ableCollec tion<Tasks Model>();        
51                     
52                // Feed  namespace        
53                XNamespa ce rss = " http://www .w3.org/20 05/Atom";         
54                // d nam espace        
55                XNamespa ce d = "ht tp://schem as.microso ft.com/ado /2007/08/d ataservice s";        
56                // m nam espace        
57                XNamespa ce m = "ht tp://schem as.microso ft.com/ado /2007/08/d ataservice s/metadata ";        
58          
59                // Conve rt the str ing respon se to an x Document.        
60                XDocumen t xdoc = X Document.P arse(Tasks ResponseBo dy.ToStrin g(), LoadO ptions.Non e);        
61                foreach  (var entry  in xdoc.R oot.Descen dants(rss  + "entry") .Descendan ts(rss + " content"). Descendant s(m + "pro perties"))        
62                {        
63                    Task sModel tas k=new Task sModel();                          
64                    task .Subject=  entry.Elem ent(d + "S ubject").V alue;        
65                    task .Scheduled StartDate=  DateTime. Parse(entr y.Element( d + "Sched uledStart" ).Value);        
66                    Task s.Add(task );        
67                }        
68                return T asks;        
69           }        
70          
71           #r egion INot ifyPropert yChanged M embers        
72          
73           pu blic event  PropertyC hangedEven tHandler P ropertyCha nged;        
74          
75           //  Used to n otify Silv erlight th at a prope rty has ch anged.        
76           pr ivate void  NotifyPro pertyChang ed(string  propertyNa me)        
77           {        
78                if (Prop ertyChange d != null)        
79                {        
80                    Prop ertyChange d(this, ne w Property ChangedEve ntArgs(pro pertyName) );        
81                }        
82           }        
83           #e ndregion        
84       }        
85   }