From 788cc1602c21887b441f68c9174158d7dacf56f2 Mon Sep 17 00:00:00 2001 From: inbargazit Date: Wed, 15 May 2024 14:19:00 -0700 Subject: [PATCH] Various updates --- JWT-Console/JWT-Console.csproj | 7 +-- Quick_ACG/Quick_ACG.csproj | 12 ++-- .../launcher-csharp.Tests.csproj | 12 ++-- .../Views/Shared/_HomeLayout.cshtml | 2 +- launcher-csharp/Views/Shared/_Layout.cshtml | 2 +- .../eSignature/Examples/EmbeddedSending.cs | 52 ++++++++++++++++-- .../Views/EmbeddedSending/eg011.cshtml | 4 +- launcher-csharp/launcher-csharp.csproj | 20 +++---- launcher-csharp/wwwroot/favicon.png | Bin 0 -> 1221 bytes 9 files changed, 76 insertions(+), 35 deletions(-) create mode 100644 launcher-csharp/wwwroot/favicon.png diff --git a/JWT-Console/JWT-Console.csproj b/JWT-Console/JWT-Console.csproj index 50b9e731..0c9f15f6 100644 --- a/JWT-Console/JWT-Console.csproj +++ b/JWT-Console/JWT-Console.csproj @@ -29,10 +29,9 @@ - - - - + + + diff --git a/Quick_ACG/Quick_ACG.csproj b/Quick_ACG/Quick_ACG.csproj index 2093400c..eecd973e 100644 --- a/Quick_ACG/Quick_ACG.csproj +++ b/Quick_ACG/Quick_ACG.csproj @@ -47,17 +47,17 @@ - - + + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/launcher-csharp.Tests/launcher-csharp.Tests.csproj b/launcher-csharp.Tests/launcher-csharp.Tests.csproj index 2b3c86e6..c7b47a5e 100644 --- a/launcher-csharp.Tests/launcher-csharp.Tests.csproj +++ b/launcher-csharp.Tests/launcher-csharp.Tests.csproj @@ -24,15 +24,15 @@ - - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/launcher-csharp/Views/Shared/_HomeLayout.cshtml b/launcher-csharp/Views/Shared/_HomeLayout.cshtml index 0f2ad047..fd56d96f 100644 --- a/launcher-csharp/Views/Shared/_HomeLayout.cshtml +++ b/launcher-csharp/Views/Shared/_HomeLayout.cshtml @@ -8,7 +8,7 @@ - + @ViewData["title"] diff --git a/launcher-csharp/Views/Shared/_Layout.cshtml b/launcher-csharp/Views/Shared/_Layout.cshtml index 99087459..0c9f8fd1 100644 --- a/launcher-csharp/Views/Shared/_Layout.cshtml +++ b/launcher-csharp/Views/Shared/_Layout.cshtml @@ -8,7 +8,7 @@ - + @ViewData["title"] diff --git a/launcher-csharp/eSignature/Examples/EmbeddedSending.cs b/launcher-csharp/eSignature/Examples/EmbeddedSending.cs index a9df11c2..b654fe2d 100644 --- a/launcher-csharp/eSignature/Examples/EmbeddedSending.cs +++ b/launcher-csharp/eSignature/Examples/EmbeddedSending.cs @@ -41,14 +41,12 @@ public static string SendEnvelopeUsingEmbeddedSending(string signerEmail, string string envelopeId = results.EnvelopeId; //ds-snippet-end:eSign11Step2 - //ds-snippet-start:eSign11Step3 // Step 3. create the sender view // Call the CreateSenderView API // Exceptions will be caught by the calling function - ReturnUrlRequest viewRequest = new ReturnUrlRequest - { - ReturnUrl = returnUrl, - }; + //ds-snippet-start:eSign11Step3 + EnvelopeViewRequest viewRequest = PrepareViewRequest(startingView, returnUrl); + ViewUrl result1 = envelopesApi.CreateSenderView(accountId, envelopeId, viewRequest); // Switch to Recipient and Documents view if requested by the user @@ -64,6 +62,50 @@ public static string SendEnvelopeUsingEmbeddedSending(string signerEmail, string return redirectUrl; } + //ds-snippet-start:eSign11Step3 + private static EnvelopeViewRequest PrepareViewRequest(string startingView, string returnUrl) + { + EnvelopeViewSettings viewSettings = new EnvelopeViewSettings + { + StartingScreen = startingView, + SendButtonAction = "send", + ShowBackButton = "false", + BackButtonAction = "previousPage", + ShowHeaderActions = "false", + ShowDiscardAction = "false", + LockToken = string.Empty, + RecipientSettings = new EnvelopeViewRecipientSettings + { + ShowEditRecipients = "false", + ShowContactsList = "false", + }, + DocumentSettings = new EnvelopeViewDocumentSettings + { + ShowEditDocuments = "false", + ShowEditDocumentVisibility = "false", + ShowEditPages = "false", + }, + TaggerSettings = new EnvelopeViewTaggerSettings + { + PaletteSections = "default", + PaletteDefault = "custom", + }, + TemplateSettings = new EnvelopeViewTemplateSettings + { + ShowMatchingTemplatesPrompt = "true", + }, + }; + + EnvelopeViewRequest viewRequest = new EnvelopeViewRequest + { + ReturnUrl = returnUrl, + ViewAccess = "envelope", + Settings = viewSettings, + }; + return viewRequest; + } + //ds-snippet-end:eSign11Step3 + //ds-snippet-start:eSign11Step2 private static EnvelopeDefinition MakeEnvelope(string signerEmail, string signerName, string ccEmail, string ccName, string docDocx, string docPdf, string envStatus) { diff --git a/launcher-csharp/eSignature/Views/EmbeddedSending/eg011.cshtml b/launcher-csharp/eSignature/Views/EmbeddedSending/eg011.cshtml index 1faf54fd..cab843f2 100644 --- a/launcher-csharp/eSignature/Views/EmbeddedSending/eg011.cshtml +++ b/launcher-csharp/eSignature/Views/EmbeddedSending/eg011.cshtml @@ -27,8 +27,8 @@
diff --git a/launcher-csharp/launcher-csharp.csproj b/launcher-csharp/launcher-csharp.csproj index 4e244603..974282c2 100644 --- a/launcher-csharp/launcher-csharp.csproj +++ b/launcher-csharp/launcher-csharp.csproj @@ -36,26 +36,26 @@ - - - - + + + + - - + + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/launcher-csharp/wwwroot/favicon.png b/launcher-csharp/wwwroot/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..fefff5520d83a3686f8d1a411a24582bf40717b0 GIT binary patch literal 1221 zcmV;$1UmbPP)*vk@IiGJN#SJqlwialH6qg2vEMmTZGeX}RZT&bcjZ z`O^~8uqNM}d;919KIi-UopXK#4tep_tKi$W!NbGgOy*@Knqny@m}s(rK4K{yw(S8X z>f&rR#8XpX#{o+TCIU}Rg41cRZ66jM`iqwNGEtO?X4!F=9mgw;^+i+}iS8;Xud!`M z41jGzX_!Eu0f3a2`GJ%jOf;__sE7)RNO2uif36%yu`gDRb6-jM7Q61Q6H3Yk4(tJ7 zqT&%9@B>$%c1rI*X4@W8+SwzeKpqpIR>lD)(&^JMYfN;(JR3L>0G&EN4HYM5Scrgr zK0X9PfUPmGC8~7uwV41K0To)p@E=0bpyb$>ZV`KRzsZ^d_*VyY-0_=wGF$lMaT-?tGXttS4a7LP-O?w>9frMsDU^g2$*zCoHmAAko>myqQi{04h77S30IA z%wg1I04@WJ#$tDC04lRDvXnU{YBguUi2?Xc%D=`1qHCPVn4SP91fZAXQxjauId+^g z+Ww=aV50@E-qE|Dg-{U)c=Z%S&@9E#Sl7~KI=!aPh^kd^i-|f-OEx|Z-5oUqxPr9@ zr_u3SqnTH2$!3hlqAQ!}R8c$N5&gwPpDEXknjRw__nT9yn*wF-1&Z5mV&;!lymO}= z!%I;N)l~tOU4EfZuJR j-cEwUNw9XfZVLVf6}&j39e`aL00000NkvXXu0mjfO4u@9 literal 0 HcmV?d00001