Produced by Araxis Merge on 2/1/2017 2:56:50 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.
| # | 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 | MainPage.xaml.cs | Tue Dec 20 19:51:47 2016 UTC |
| 2 | Wed Feb 1 19:56:50 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 112 |
| 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 |
No regular expressions were active.
| 1 | // ======= ========== ========== ========== ========== ========== ========== == | |||||
| 2 | // | |||||
| 3 | // This f ile is par t of the M icrosoft D ynamics CR M SDK Code Samples. | |||||
| 4 | // | |||||
| 5 | // Copyri ght (C) Mi crosoft Co rporation. All righ ts reserve d. | |||||
| 6 | // | |||||
| 7 | // This s ource code is intend ed only as a supplem ent to Mic rosoft | |||||
| 8 | // Develo pment Tool s and/or o nline docu mentation. See thes e other | |||||
| 9 | // materi als for de tailed inf ormation r egarding M icrosoft c ode sample s. | |||||
| 10 | // | |||||
| 11 | // THIS C ODE AND IN FORMATION ARE PROVID ED "AS IS" WITHOUT W ARRANTY OF ANY | |||||
| 12 | // KIND, EITHER EXP RESSED OR IMPLIED, I NCLUDING B UT NOT LIM ITED TO TH E | |||||
| 13 | // IMPLIE D WARRANTI ES OF MERC HANTABILIT Y AND/OR F ITNESS FOR A | |||||
| 14 | // PARTIC ULAR PURPO SE. | |||||
| 15 | // | |||||
| 16 | // ======= ========== ========== ========== ========== ========== ========== == | |||||
| 17 | ||||||
| 18 | using Syst em; | |||||
| 19 | using Mode rnSoapApp. Models; | |||||
| 20 | using Mode rnSoapApp. Views; | |||||
| 21 | using Wind ows.UI.Cor e; | |||||
| 22 | using Wind ows.UI.Xam l; | |||||
| 23 | using Wind ows.UI.Xam l.Controls ; | |||||
| 24 | using Wind ows.UI.Xam l.Navigati on; | |||||
| 25 | using Wind ows.Storag e; | |||||
| 26 | using Syst em.Collect ions.Objec tModel; | |||||
| 27 | using Micr osoft.Iden tityModel. Clients.Ac tiveDirect ory; | |||||
| 28 | using Syst em.Net.Htt p; | |||||
| 29 | using Wind ows.UI.Pop ups; | |||||
| 30 | using Syst em.Diagnos tics; | |||||
| 31 | using Syst em.Threadi ng.Tasks; | |||||
| 32 | using Wind ows.Securi ty.Authent ication.We b; | |||||
| 33 | using Mode rnSoapApp. Common; | |||||
| 34 | // The Bla nk Page it em templat e is docum ented at h ttp://go.m icrosoft.c om/fwlink/ ?LinkId=23 4238 | |||||
| 35 | ||||||
| 36 | namespace ModernSoap App | |||||
| 37 | { | |||||
| 38 | /// <s ummary> | |||||
| 39 | /// An empty pag e that can be used o n its own or navigat ed to with in a Frame . | |||||
| 40 | /// </ summary> | |||||
| 41 | public sealed pa rtial clas s MainPage : Page | |||||
| 42 | { | |||||
| 43 | #r egion Clas s Level Me mbers | |||||
| 44 | ||||||
| 45 | pr ivate stri ng _access Token = st ring.Empty ; | |||||
| 46 | pr ivate stat ic string _strItemCl icked; | |||||
| 47 | ||||||
| 48 | // TODO may be in futu re if nece ssary mean s this dat a will als o from ser ver | |||||
| 49 | // Currently using sta tic fields as menu i tems for d isplaying | |||||
| 50 | pr ivate stri ng[] _strM enuItems = new strin g[] { "Lea ds", "Oppo rtunities" , "Account s", "Conta cts", "Tas ks", "Plac eholder", "Placehold er" }; | |||||
| 51 | pr ivate Obse rvableColl ection<Mai nPageItem> _theMenuI tems { get ; set; } | |||||
| 52 | ||||||
| 53 | # endregion | |||||
| 54 | ||||||
| 55 | pu blic MainP age() | |||||
| 56 | { | |||||
| 57 | this.Ini tializeCom ponent(); | |||||
| 58 | } | |||||
| 59 | ||||||
| 60 | // / <summary > | |||||
| 61 | // / Invoked when this page is ab out to be displayed in a Frame . | |||||
| 62 | // / </summar y> | |||||
| 63 | // / <param n ame="e">Ev ent data t hat descri bes how th is page wa s reached. The Para meter | |||||
| 64 | // / property is typica lly used t o configur e the page .</param> | |||||
| 65 | pr otected ov erride voi d OnNaviga tedTo(Navi gationEven tArgs e) | |||||
| 66 | { | |||||
| 67 | progress Bar.Visibi lity = Vis ibility.Vi sible; | |||||
| 68 | Initiali ze(); | |||||
| 69 | } | |||||
| 70 | ||||||
| 71 | // / <summary > | |||||
| 72 | // / Binding Menu items to Main P age | |||||
| 73 | // / </summar y> | |||||
| 74 | pr ivate asyn c void Ini tialize() | |||||
| 75 | { | |||||
| 76 | _accessT oken = awa it Current Environmen t.Initiali ze(); | |||||
| 77 | pageTitl e.Text = " Welcome to the Windo ws 8 sampl e app for Microsoft Dynamics C RM"; | |||||
| 78 | _theMenu Items = ne w Observab leCollecti on<MainPag eItem>(); | |||||
| 79 | for (int i = 0; i < 7; i++) | |||||
| 80 | { | |||||
| 81 | Main PageItem a nItem = ne w MainPage Item() | |||||
| 82 | { | |||||
| 83 | Name = _st rMenuItems [i] | |||||
| 84 | }; | |||||
| 85 | _the MenuItems. Add(anItem ); | |||||
| 86 | } | |||||
| 87 | itemsVie wSource.So urce = _th eMenuItems ; | |||||
| 88 | progress Bar.Visibi lity = Vis ibility.Co llapsed; | |||||
| 89 | } | |||||
| 90 | ||||||
| 91 | pr ivate asyn c void Nav igateTo(Ty pe pageTyp e, object parameter) | |||||
| 92 | { | |||||
| 93 | await Di spatcher.R unAsync(Co reDispatch erPriority .Normal, ( ) => Frame .Navigate( pageType, parameter) ); | |||||
| 94 | } | |||||
| 95 | ||||||
| 96 | pr ivate void itemGridV iew_ItemCl ick(object sender, I temClickEv entArgs e) | |||||
| 97 | { | |||||
| 98 | MainPage Item selIt em = (Main PageItem)e .ClickedIt em; | |||||
| 99 | _strItem Clicked = selItem.Na me; | |||||
| 100 | if (_str ItemClicke d.Equals(" Tasks")) | |||||
| 101 | { | |||||
| 102 | this .NavigateT o(typeof(T asks), _ac cessToken) ; | |||||
| 103 | } | |||||
| 104 | ||||||
| 105 | else if (_strItemC licked.Equ als("Accou nts")) | |||||
| 106 | { | |||||
| 107 | this .NavigateT o(typeof(A ccounts), _accessTok en); | |||||
| 108 | } | |||||
| 109 | } | |||||
| 110 | ||||||
| 111 | } | |||||
| 112 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.