Produced by Araxis Merge on 2/1/2017 2:56:57 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\XRMTooling\QuickStartXRMToolingWPFClient\GettingStarted | GettingStarted.htm | Tue Dec 20 19:51:43 2016 UTC |
| 2 | Wed Feb 1 19:56:57 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 302 |
| 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 | <!DOCTYPE HTML> | |||||
| 2 | <!-- saved from url= (0054)http s://msdn.m icrosoft.c om/en-us/l ibrary/dn6 89071.aspx --> | |||||
| 3 | <!DOCTYPE html PUBLI C "" ""><H TML lang=" en" dir="l tr" xmlns= "http://ww w.w3.org/1 999/xhtml" ><HEAD><ME TA | |||||
| 4 | content="I E=11.0000" http-equi v="X-UA-Co mpatible"> | |||||
| 5 | <LINK href ="https:// msdn.micro soft.com/e n-us/libra ry/dn68907 1.aspx" re l="canonic al"> | |||||
| 6 | ||||||
| 7 | <META http -equiv="Co ntent-Type " content= "text/html ; charset= utf-8"><TI TLE>Use | |||||
| 8 | the XRM to oling comm on login c ontrol in your clien t applicat ions</TITL E> | |||||
| 9 | <META name ="DCS.dcsu ri" conten t="/en-us/ library/dn 689071(d=d efault,l=e n-us,v=crm .7).aspx"> | |||||
| 10 | <META name ="Normaliz edUrl" con tent="http s://msdn.m icrosoft.c om/en-us/l ibrary/dn6 89071(d=de fault,l=en -us,v=crm. 7).aspx"> | |||||
| 11 | <META name ="ms.norma lizedurl" content="h ttps://msd n.microsof t.com/en-u s/library/ dn689071(d =default,l =en-us,v=c rm.7).aspx "> | |||||
| 12 | <META name ="VotingCo ntextUrl" content="h ttps://msd n.microsof t.com/en-u s/library/ dn689071(d =default,l =en-us,v=c rm.7).aspx "> | |||||
| 13 | <META name ="MN" cont ent="61C41 DCF-11:41: 18 AM"> | |||||
| 14 | <META name ="Search.S hortId" co ntent="dn6 89071"> | |||||
| 15 | <META name ="ms.short idmsdn" co ntent="dn6 89071"> | |||||
| 16 | <META name ="Ms.Local e" content ="en-us"> | |||||
| 17 | <META name ="ms.prodv er" conten t="CRM.7"> | |||||
| 18 | <META name ="ms.conte ntlang" co ntent="EN" > | |||||
| 19 | <META name ="ms.lang" content=" EN"> | |||||
| 20 | <META name ="ms.loc" content="U S"> | |||||
| 21 | <META name ="ms.sitev er" conten t="2015.02 .26.3"> | |||||
| 22 | <META name ="ms.asset id" conten t="f77b2a2 0-0a30-421 1-a1d9-749 23d3eeae1" > | |||||
| 23 | <META name ="ms.auth" content=" 0"> <LIN K href="su pport/Comb ined.css" | |||||
| 24 | rel="style sheet" typ e="text/cs s"> | |||||
| 25 | <META name ="GENERATO R" content ="MSHTML 1 1.00.9600. 17631"></H EAD> | |||||
| 26 | <BODY clas s="library IE IE11"> | |||||
| 27 | <DIV id="p age"><LINK rel="styl esheet" ty pe="text/c ss"> <INPUT id="isHead erBleeding " type="hi dden" valu e="true"> | |||||
| 28 | ||||||
| 29 | <DIV class ="ltr msdn " id="ux-h eader" dir ="ltr"><HE ADER><SPAN | |||||
| 30 | id="moveDr awer"></SP AN> <SPA N id="sing leCol"></S PAN> | |||||
| 31 | <SPAN id=" doubleCol" ></SPAN> | |||||
| 32 | <DIV class ="row"> | |||||
| 33 | <DIV class ="top"> | |||||
| 34 | <DIV class ="left"><A class="ms dnLogoImg" | |||||
| 35 | href="http s://msdn.m icrosoft.c om/en-us"> <IMG src=" support/mi crosoftLog oForHeader .png"> | |||||
| 36 | </ A></DIV> | |||||
| 37 | <DIV class ="right"> | |||||
| 38 | ||||||
| 39 | <DIV class ="auxNav"> | |||||
| 40 | ||||||
| 41 | ||||||
| 42 | <DIV id="F ragment_So cialLinks" xmlns="ht tp://www.w 3.org/1999 /xhtml" | |||||
| 43 | data-fragm entname="S ocialLinks "> | |||||
| 44 | </DIV></DI V></DIV></ DIV> | |||||
| 45 | <DIV class ="bottom"> | |||||
| 46 | <DIV class ="left"> | |||||
| 47 | <DIV id="F ragment_Si teLogo" xm lns="http: //www.w3.o rg/1999/xh tml" | |||||
| 48 | data-fragm entname="S iteLogo"> | |||||
| 49 | <DIV class ="LinkWith Image topI mage"><A i d="SiteLog o_2152_1" href="http s://msdn.m icrosoft.c om/"><IMG | |||||
| 50 | id="msdnLo go-black" src="suppo rt/dn61097 5.msdnLogo -black.jpg " | |||||
| 51 | xmlns=""> <SPA N></SPAN> </A> </DIV></D IV> | |||||
| 52 | </DIV> | |||||
| 53 | </DIV> </DIV></HE ADER> | |||||
| 54 | </DIV> | |||||
| 55 | <DIV id="b ody"> | |||||
| 56 | <DIV class ="content" id="conte nt"> | |||||
| 57 | <DIV xmlns ="http://w ww.w3.org/ 1999/xhtml "> | |||||
| 58 | <DIV class ="topic" x mlns="http ://www.w3. org/1999/x html" xmln s:cs="http ://msdn.mi crosoft.co m/en-us/" | |||||
| 59 | xmlns:msxs l="urn:sch emas-micro soft-com:x slt" xmlns :mtps="htt p://msdn2. microsoft. com/mtps"> | |||||
| 60 | <H1 class= "title">Us e the XRM tooling co mmon login control i n your cli ent | |||||
| 61 | applicatio ns</H1> | |||||
| 62 | <A hre f="http:// go.microso ft.com/fwl ink/p/?Lin kID=400508 ">Online V ersion</A> | |||||
| 63 | <DIV id="m ainSection "> | |||||
| 64 | <DIV id="m ainBody"> | |||||
| 65 | <P></P> | |||||
| 66 | <P>The Mic rosoft Dyn amics  ;CRM SDK provid es you wit h a templa te for | |||||
| 67 | Microsoft Visual Stu dio that e nables you to use th e common l ogin contr ol in your | |||||
| 68 | client app lications. The code for CRM au thenticati on, creden tial stora ge and | |||||
| 69 | retrieval, and diagn ostic logg ing is bui lt into th e template so that y ou can | |||||
| 70 | quickly le verage the se capabil ities in y our Window s client a pplication s for CRM. | |||||
| 71 | The common login con trol is an implement ation of t he <A href ="https:// msdn.micro soft.com/e n-us/libra ry/microso ft.xrm.too ling.crmco nnectcontr ol.aspx">M icrosoft.X rm.Tooling .CrmConnec tControl</ A>, | |||||
| 72 | and the co ntrol rese mbles the following image.</P> <IMG title ="XRM Tool ing common login con trol" | |||||
| 73 | id="880a79 74-1c2f-46 06-8248-ef 754a9a2c08 " alt="XRM Tooling c ommon logi n control" | |||||
| 74 | src="suppo rt/IC72647 5.png" xml ns=""> | |||||
| 75 | <P></P> | |||||
| 76 | <DIV> | |||||
| 77 | <H2 class= "LW_Collap sibleArea_ TitleDiv"> | |||||
| 78 | <DIV><A ti tle="Colla pse" class ="LW_Colla psibleArea _TitleAhre f" role="b utton" | |||||
| 79 | href="java script:voi d(0)"><SPA N class="c l_Collapsi bleArea_ex panding LW _Collapsib leArea_Img "></SPAN>< SPAN | |||||
| 80 | class="LW_ Collapsibl eArea_Titl e">In This Topic</SP AN></A> | |||||
| 81 | <DIV class ="LW_Colla psibleArea _HrDiv"> | |||||
| 82 | <HR class= "LW_Collap sibleArea_ Hr"> | |||||
| 83 | </DIV></DI V></H2> | |||||
| 84 | <DIV class ="sectionb lock"> | |||||
| 85 | <P><A | |||||
| 86 | href="http s://msdn.m icrosoft.c om/en-us/l ibrary/dn6 89071.aspx #Prereq">P rerequisit es</A> | |||||
| 87 | </ P> | |||||
| 88 | <P><A href ="https:// msdn.micro soft.com/e n-us/libra ry/dn68907 1.aspx#New ProjectUsi ngTemplate ">Create | |||||
| 89 | a WPF appl ication us ing the co mmon login control t emplate</A > </P> | |||||
| 90 | <P><A href ="https:// msdn.micro soft.com/e n-us/libra ry/dn68907 1.aspx#Add ">Add the | |||||
| 91 | common log in control template to your ex isting WPF applicati on</A> | |||||
| 92 | </P></DIV> </DIV><A i d="Prereq" ></A> | |||||
| 93 | <H2 class= "heading"> Prerequisi tes</H2> | |||||
| 94 | <DIV class ="section" id="secti onSection1 "> | |||||
| 95 | <UL> | |||||
| 96 | <LI clas s="unorder ed"> .NET F ramework 4 .5.2 <BR ><BR></LI> | |||||
| 97 | <LI clas s="unorder ed"> Micros oft Visual Studio 20 12, Visual | |||||
| 98 | Studio 2 013, or Vi sual Studi o 2015<BR> <BR></LI> | |||||
| 99 | <LI clas s="unorder ed"> Nuget Pack age Manage r for <A h ref="http: //visualst udiogaller y.msdn.mic rosoft.com /27077b70- 9dad-4c64- adcf-c7cf6 bc9970c">V isual | |||||
| 100 | Studio 2 012</A>, < A href="ht tp://visua lstudiogal lery.msdn. microsoft. com/4ec152 6c-4a8c-4a 84-b702-b2 1a8f5293ca ">Visual | |||||
| 101 | Studio 2 013</A>, o r <A href= "http://vi sualstudio gallery.ms dn.microso ft.com/4ec 1526c-4a8c -4a84-b702 -b21a8f529 3ca">Visua l | |||||
| 102 | Studio 2 015</A><BR ><BR></LI> | |||||
| 103 | <LI clas s="unorder ed"> Micros oft Dynami cs CR M SDK | |||||
| 104 | template s for Visu al Studio that conta ins the co mmon login control t emplate. | |||||
| 105 | You can get it in one of the following ways: <BR ><BR> | |||||
| 106 | <UL> | |||||
| 107 | <LI cl ass="unord ered"><A h ref="http: //go.micro soft.com/f wlink/p/?L inkId=4009 25">Downlo ad</A> | |||||
| 108 | the CR M SDK temp late from Visual Stu dio galler y, and dou ble-click the | |||||
| 109 | <CODE> CRMSDKTemp lates.vsix </CODE> fi le to inst all the te mplate in Visual | |||||
| 110 | Studio .<BR><BR>< /LI> | |||||
| 111 | <LI cl ass="unord ered"><A h ref="http: //go.micro soft.com/f wlink/p/?L inkId=5121 22">Downlo ad</A> | |||||
| 112 | and ex tract the CRM SDK pa ckage. The templates file, CRM SDKTemplat es.vsix, | |||||
| 113 | is loc ated in th e SDK\Temp lates fold er. Double -click the | |||||
| 114 | <CODE> CRMSDKTemp lates.vsix </CODE> fi le to inst all the te mplate in Visual | |||||
| 115 | Studio .<BR><BR>< /LI></UL>< /LI></UL>< /DIV><A id ="NewProje ctUsingTem plate"></A > | |||||
| 116 | ||||||
| 117 | <H2 class= "heading"> Create a W PF applica tion using the commo n login co ntrol | |||||
| 118 | template</ H2> | |||||
| 119 | <DIV class ="section" id="secti onSection2 "> | |||||
| 120 | <P>Here is a quick w ay to crea te a Windo ws Present ation Foun dation (WP F) | |||||
| 121 | applicatio n that lev erages the common lo gin contro l and the underlying code for | |||||
| 122 | authentica tion, cred ential sto rage and r euse, and default tr acing or | |||||
| 123 | logging.</ P> | |||||
| 124 | <DIV class ="subSecti on"> | |||||
| 125 | <OL class= "ordered"> | |||||
| 126 | <LI> | |||||
| 127 | <P>Start Microsoft Visual St udio, and create a n ew project .</P></LI> | |||||
| 128 | <LI> | |||||
| 129 | <P>In th e <STRONG> New Projec t</STRONG> dialog bo x:</P> | |||||
| 130 | <OL clas s="ordered "> | |||||
| 131 | <LI> From the list of install ed templat es, expand <STRONG>V isual | |||||
| 132 | C#</ST RONG>, and select <S TRONG>CRM SDK Templa tes</STRON G>.<BR><BR ></LI> | |||||
| 133 | <LI> Ensu re that <S TRONG>.NET Framework 4.5.2</ST RONG> is | |||||
| 134 | select ed.<BR><BR ></LI> | |||||
| 135 | <LI> Sele ct <STRONG >WPF Appli cation for CRM</STRO NG>.<BR><B R></LI> | |||||
| 136 | <LI> Spec ify the na me and loc ation of t he project , and clic k | |||||
| 137 | <STRON G>OK</STRO NG>.<BR><B R></LI></O L><IMG tit le="WPF Ap plication for CRM te mplate" | |||||
| 138 | id="d6d0 b49c-c112- 46b7-ad70- ec1bb0a701 5d" alt="W PF Applica tion for C RM templat e" | |||||
| 139 | src="sup port/IC755 649.png" x mlns=""> </LI> | |||||
| 140 | <LI> | |||||
| 141 | <P>To te st the pro ject:</P> | |||||
| 142 | <OL clas s="ordered "> | |||||
| 143 | <LI> Save the proje ct and pre ss F5 or c lick <STRO NG>Debug</ STRONG> | |||||
| 144 | > < STRONG>Sta rt Debuggi ng</STRONG > to verif y if the p roject com piles | |||||
| 145 | succes sfully. On successfu l compilat ion, you’l l see a Ma inWindow w ith | |||||
| 146 | <STRON G>Login to CRM</STRO NG> button . Click th e button t o display the common | |||||
| 147 | login control.<B R><BR></LI > | |||||
| 148 | <LI> Test the authe ntication by providi ng your cr edentials to | |||||
| 149 | connec t to CRM, and then c lick <STRO NG>Login</ STRONG>. A message d isplays | |||||
| 150 | your C RM connect ion status .<BR><BR>< /LI></OL>< /LI></OL>< /DIV> | |||||
| 151 | <P>For a s ample that uses the common log in control template to connect to CRM | |||||
| 152 | and perfor m various operations , see <A h ref="https ://msdn.mi crosoft.co m/en-us/li brary/dn68 9019.aspx" >Sample: | |||||
| 153 | Quick star t for XRM Tooling AP I</A>.</P> | |||||
| 154 | </DIV><A i d="Add"></ A> | |||||
| 155 | <H2 class= "heading"> Add the co mmon login control t emplate to your exis ting WPF | |||||
| 156 | applicatio n</H2> | |||||
| 157 | <DIV class ="section" id="secti onSection3 "> | |||||
| 158 | <P>If you already ha ve a WPF c lient appl ication, y ou can eas ily add th e common | |||||
| 159 | login cont rol templa te to it t o leverage the unifo rm sign-in experienc e and the | |||||
| 160 | underlying code for CRM authen tication, credential storage a nd reuse, and | |||||
| 161 | default tr acing or l ogging. In this case , you must create a control in the user | |||||
| 162 | interface of your ex isting cli ent applic ation to c all the co mmon login control, | |||||
| 163 | instantiat e an insta nce of the CRM conne ction obje ct, and th en use the | |||||
| 164 | connection object to perform v arious ope rations in CRM.</P> | |||||
| 165 | <DIV class ="subSecti on"> | |||||
| 166 | <OL class= "ordered"> | |||||
| 167 | <LI> | |||||
| 168 | <P>Open an existin g WPF appl ication pr oject in V isual Stud io. For th is | |||||
| 169 | example, let’s ass ume that t he name of your WPF applicatio n project is | |||||
| 170 | SampleWP FApp.</P>< /LI> | |||||
| 171 | <LI> | |||||
| 172 | <P>Add t he common login cont rol templa te to your project.< /P> | |||||
| 173 | <OL clas s="ordered "> | |||||
| 174 | <LI> In t he <STRONG >Solution Explorer</ STRONG> pa ne, right- click | |||||
| 175 | the pr oject name , and clic k <STRONG> Add</STRON G> > <S TRONG>New | |||||
| 176 | Item</ STRONG>.<B R><BR></LI > | |||||
| 177 | <LI> In t he <STRONG >Add New I tem</STRON G> dialog box, from the | |||||
| 178 | list o f installe d template s, expand <STRONG>Vi sual C#</S TRONG>, an d select | |||||
| 179 | <STRON G>CRM SDK Templates< /STRONG>. Click <STR ONG>CRM Lo gin Form f or WPF | |||||
| 180 | Applic ations</ST RONG>, and click <ST RONG>OK</S TRONG>.<BR ><BR><IMG title="Add the commo n login co ntrol temp late" | |||||
| 181 | id="96 09f8ea-75a 6-49ff-80b f-e6e935b5 cbc5" alt= "Add the c ommon logi n control template" | |||||
| 182 | src="s upport/IC7 55650.png" xmlns=""> </LI></OL> </LI> | |||||
| 183 | <LI> | |||||
| 184 | <P>The n ewly added <STRONG>C rmLoginFor m1.xaml</S TRONG> log in control is | |||||
| 185 | displaye d in the X AML design er area. I f it doesn ’t, double -click the | |||||
| 186 | <STRONG> CrmLoginFo rm1.xaml</ STRONG> fi le in the <STRONG>So lution | |||||
| 187 | Explorer </STRONG> pane.</P>< IMG title= "Verify th at the log in control renders p roperly" | |||||
| 188 | id="1373 b9c3-6d41- 402e-98f6- 7c18e75977 ce" alt="V erify that the login control r enders pro perly" | |||||
| 189 | src="sup port/IC726 478.png" x mlns=""> </LI> | |||||
| 190 | <LI> | |||||
| 191 | <P>You m ust now ca ll the new ly added l ogin contr ol from yo ur applica tion. To | |||||
| 192 | do this, add a <ST RONG>Butto n</STRONG> control o n your Mai nWindow.xa ml file, | |||||
| 193 | and set the name a nd content to <STRON G>btnSignI n</STRONG> and <STRO NG>Sign in | |||||
| 194 | to CRM</ STRONG> re spectively .</P><IMG title="Add a control to call t he login f orm" | |||||
| 195 | id="3ca8 99d2-a1be- 4b6c-8f4d- 2b7d134b5c 91" alt="A dd a contr ol to call the login form" | |||||
| 196 | src="sup port/IC726 479.png" x mlns=""> </LI> | |||||
| 197 | <LI> | |||||
| 198 | <P>Doubl e-click th e button t o add code for the c lick event of the | |||||
| 199 | <STRONG> btnSignIn< /STRONG> b utton in t he MainWin dow.xaml.c s file.</P ></LI> | |||||
| 200 | <LI> | |||||
| 201 | <P>Add t he followi ng sample code in th e click ev ent of the | |||||
| 202 | <STRONG> btnSignIn< /STRONG> b utton to c all the Cr mLoginForm 1 control, and | |||||
| 203 | create a n instance of the CR M connecti on object. </P> | |||||
| 204 | <DIV cla ss="codeSn ippetConta iner" id=" code-snipp et-1" xmln s=""> | |||||
| 205 | <DIV cla ss="codeSn ippetConta inerTabs"> </DIV> | |||||
| 206 | <DIV cla ss="codeSn ippetConta inerCodeCo ntainer"> | |||||
| 207 | <DIV cla ss="codeSn ippetToolB ar"> | |||||
| 208 | <DIV cla ss="codeSn ippetToolB arText"><A name="Cod eSnippetCo pyLink" ti tle="Copy to clipboa rd." | |||||
| 209 | style="d isplay: no ne;" href= "javascrip t:if (wind ow.epx.cod eSnippet)w indow.epx. codeSnippe t.copyCode ('CodeSnip petContain erCode_8a4 24441-84ba -4477-a296 -0382614b8 b33');">Co py</A> | |||||
| 210 | </DIV> </DIV> | |||||
| 211 | <DIV cla ss="codeSn ippetConta inerCode" id="CodeSn ippetConta inerCode_8 a424441-84 ba-4477-a2 96-0382614 b8b33" | |||||
| 212 | dir="ltr "> | |||||
| 213 | <DIV sty le="color: black;"> | |||||
| 214 | <PRE>// Es tablish th e Login co ntrol. | |||||
| 215 | CRMLoginFo rm1 ctrl = new CRMLo ginForm1() ; | |||||
| 216 | ||||||
| 217 | // Wire ev ent to log in respons e. | |||||
| 218 | ctrl.Conne ctionToCrm Completed += ctrl_Co nnectionTo CrmComplet ed; | |||||
| 219 | ||||||
| 220 | // Show th e login co ntrol. | |||||
| 221 | ctrl.ShowD ialog(); | |||||
| 222 | ||||||
| 223 | // Handle the return ed CRM con nection ob ject. | |||||
| 224 | // On succ essful con nection, d isplay the CRM versi on and con nected org name | |||||
| 225 | if (ctrl.C rmConnecti onMgr != n ull && amp; ctrl. CrmConnect ionMgr.Crm Svc != nul l &&am p; ctrl.Cr mConnectio nMgr.CrmSv c.IsReady) | |||||
| 226 | { | |||||
| 227 | Messag eBox.Show( "Connected to CRM! V ersion: " + ctrl.Crm Connection Mgr.CrmSvc .Connected OrgVersion .ToString( ) + | |||||
| 228 | " Org: " + ctrl. CrmConnect ionMgr.Crm Svc.Connec tedOrgUniq ueName, "C onnection Status"); | |||||
| 229 | ||||||
| 230 | // Per form your actions he re | |||||
| 231 | } | |||||
| 232 | else | |||||
| 233 | { | |||||
| 234 | Messag eBox.Show( "Cannot co nnect; try again!", "Connectio n Status") ; | |||||
| 235 | } | |||||
| 236 | </PRE></DI V></DIV></ DIV></DIV> </LI> | |||||
| 237 | <LI> | |||||
| 238 | <P>Add t he definit ion of the <CODE>ctr l_Connecti onToCrmCom pleted</CO DE> event | |||||
| 239 | below th e click ev ent of the button:</ P> | |||||
| 240 | <DIV cla ss="codeSn ippetConta iner" id=" code-snipp et-2" xmln s=""> | |||||
| 241 | <DIV cla ss="codeSn ippetConta inerTabs"> </DIV> | |||||
| 242 | <DIV cla ss="codeSn ippetConta inerCodeCo ntainer"> | |||||
| 243 | <DIV cla ss="codeSn ippetToolB ar"> | |||||
| 244 | <DIV cla ss="codeSn ippetToolB arText"><A name="Cod eSnippetCo pyLink" ti tle="Copy to clipboa rd." | |||||
| 245 | style="d isplay: no ne;" href= "javascrip t:if (wind ow.epx.cod eSnippet)w indow.epx. codeSnippe t.copyCode ('CodeSnip petContain erCode_74a d173e-0dac -4007-acb1 -a76107c9c 4cc');">Co py</A> | |||||
| 246 | </DIV> </DIV> | |||||
| 247 | <DIV cla ss="codeSn ippetConta inerCode" id="CodeSn ippetConta inerCode_7 4ad173e-0d ac-4007-ac b1-a76107c 9c4cc" | |||||
| 248 | dir="ltr "> | |||||
| 249 | <DIV sty le="color: black;"> | |||||
| 250 | <PRE>priva te void ct rl_Connect ionToCrmCo mpleted(ob ject sende r, EventAr gs e) | |||||
| 251 | { | |||||
| 252 | if (se nder is CR MLoginForm 1) | |||||
| 253 | { | |||||
| 254 | th is.Dispatc her.Invoke (() => | |||||
| 255 | { | |||||
| 256 | ((CRMLog inForm1)se nder).Clos e(); | |||||
| 257 | }) ; | |||||
| 258 | } | |||||
| 259 | } | |||||
| 260 | </PRE></DI V></DIV></ DIV></DIV> </LI> | |||||
| 261 | <LI> | |||||
| 262 | <P>This is how you r MainWind ow.xaml.cs file appe ars after adding cod e from the | |||||
| 263 | previous two steps :</P><IMG title="Sam ple code" id="331d91 36-943d-41 6b-8436-fb 57e29f9c9c " | |||||
| 264 | alt="Sam ple code" src="suppo rt/IC72648 0.png" xml ns=""> | |||||
| 265 | </LI> | |||||
| 266 | <LI> | |||||
| 267 | <P>To te st the pro ject:</P> | |||||
| 268 | <OL clas s="ordered "> | |||||
| 269 | <LI> Save the proje ct and pre ss F5 or c lick <STRO NG>Debug</ STRONG> | |||||
| 270 | > < STRONG>Sta rt Debuggi ng</STRONG > to verif y if the p roject com piles | |||||
| 271 | succes sfully. On successfu l compilat ion, you w ill see a MainWindow with the | |||||
| 272 | new <S TRONG>Sign In to CRM </STRONG> button. Cl ick it to display th e common | |||||
| 273 | login control.<B R><BR></LI > | |||||
| 274 | <LI> Test the authe ntication by providi ng your cr edentials to | |||||
| 275 | connec t to CRM, and then c lick <STRO NG>Login</ STRONG>. I f successf ul, a | |||||
| 276 | messag e appears stating th e version and the or ganization name that you are | |||||
| 277 | connec ted to. Cl ick <STRON G>OK</STRO NG> to clo se the mes sage.<BR>< BR><IMG | |||||
| 278 | title= "Project t est result s" id="a1c 762c3-cddc -4ae1-9f79 -c94da6031 93f" alt=" Project te st results " | |||||
| 279 | src="s upport/IC7 55651.png" xmlns=""> </LI> | |||||
| 280 | <LI> If y ou click < STRONG>Sig n In to CR M</STRONG> again, th e | |||||
| 281 | applic ation prom pts you to either ch oose the s aved crede ntials fro m the last | |||||
| 282 | sign-i n activity , or to re -enter the new crede ntials.<BR ><BR><IMG title="Sto red creden tials" | |||||
| 283 | id="a3 78b181-f74 4-4b44-80b 8-937b147d 6417" alt= "Stored cr edentials" src="supp ort/IC7264 82.png" | |||||
| 284 | xmlns= ""></LI></ OL></LI></ OL></DIV>< /DIV> | |||||
| 285 | <H2 class= "heading"> <SPAN id=" seeAlsoNoT oggle">See Also</SPA N> < /H2> | |||||
| 286 | <DIV class ="section" id="seeAl soSection" > | |||||
| 287 | <H4 class= "subHeadin g">Tasks</ H4><A href ="https:// msdn.micro soft.com/e n-us/libra ry/dn68901 9.aspx">Sa mple: | |||||
| 288 | Quick star t for XRM Tooling AP I</A> <BR> | |||||
| 289 | <H4 class= "subHeadin g">Concept s</H4><A h ref="https ://msdn.mi crosoft.co m/en-us/li brary/dn68 9057.aspx" >Build | |||||
| 290 | Windows cl ient appli cations us ing the XR M tools</A > <BR><BR></ DIV></DIV> | |||||
| 291 | <P></P> Mi crosoft Dy namics CRM 2015 and Microsoft Dynamics C RM Online <BR><A | |||||
| 292 | href="mail to:mscrmdf @microsoft .com?subje ct=Use the XRM tooli ng common login cont rol in you r client a pplication s (/1:SDK Content/2: V7.0/3:V7. 0.0/4:f77b 2a20-0a30- 4211-a1d9- 74923d3eea e1/5:none/ 6:en-us/7: Both/8:CRM )"> | |||||
| 293 | Send com ments abou t this top ic to Micr osoft. </A><BR>< A href="ht tps://msdn .microsoft .com/en-us /library/g g490658.as px">© | |||||
| 294 | 2014 Micro soft Corpo ration. Al l rights r eserved. </A></DIV ></DIV></D IV> | |||||
| 295 | <DIV class ="libraryM emberFilte r"> | |||||
| 296 | <DIV class ="filterCo ntainer">< SPAN>Show: </SPAN> <LAB EL><INPUT class="lib raryFilter Inherited" | |||||
| 297 | type="chec kbox" chec ked="check ed" value= "Inherit"> Inherited </ LABEL> | |||||
| 298 | <LABEL ><INPUT cl ass="libra ryFilterPr otected" t ype="check box" check ed="checke d" | |||||
| 299 | value="Pro tected">Pr otected </LA BEL> < /DIV></DIV ><INPUT id ="libraryM emberFilte rEmptyWarn ing" type= "hidden" v alue="Ther e are no m embers ava ilable wit h your cur rent filte r settings ."> | |||||
| 300 | </DIV></D IV> | |||||
| 301 | ||||||
| 302 | </BODY></ HTML> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.