-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for .NET 6 or later Windows Forms controls
- Loading branch information
1 parent
a27565d
commit cb77c0b
Showing
83 changed files
with
747 additions
and
2,818 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<topic id="d1d9a1d2-7495-457e-9095-880ab00515a3" revisionNumber="1"> | ||
<developerConceptualDocument xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<introduction> | ||
<para>Release notes for version 2023.1.2.0.</para> | ||
</introduction> | ||
|
||
<section> | ||
<content> | ||
<list class="bullet"> | ||
<listItem> | ||
<para>Added support for <codeInline>net6.0-windows</codeInline> to the | ||
<localUri>EWSoftware.PDI.Windows.Forms</localUri> library.</para> | ||
</listItem> | ||
|
||
<listItem> | ||
<para>Updated all Windows Forms demo projects to support .NET 6.0.</para> | ||
</listItem> | ||
</list> | ||
|
||
</content> | ||
</section> | ||
|
||
<relatedTopics> | ||
<link xlink:href="8885fe94-537b-45a2-84e9-112fa9c976ff" /> | ||
</relatedTopics> | ||
|
||
</developerConceptualDocument> | ||
</topic> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,8 @@ | |
// System : EWSoftware PDI Demonstration Applications | ||
// File : AttachmentsControl.cs | ||
// Author : Eric Woodruff ([email protected]) | ||
// Updated : 11/24/2018 | ||
// Note : Copyright 2004-2018, Eric Woodruff, All rights reserved | ||
// Compiler: Visual C# | ||
// Updated : 01/02/2023 | ||
// Note : Copyright 2004-2023, Eric Woodruff, All rights reserved | ||
// | ||
// This is used to edit a calendar object's attachment properties | ||
// | ||
|
@@ -82,9 +81,9 @@ public void SetValues(AttachPropertyCollection attachments) | |
foreach(AttachProperty a in attach) | ||
{ | ||
if(a.ValueLocation == ValLocValue.Binary) | ||
desc = String.Format("Inline - {0}", a.FormatType); | ||
desc = $"Inline - {a.FormatType}"; | ||
else | ||
desc = String.Format("External - {0}, {1}", a.FormatType, a.Value); | ||
desc = $"External - {a.FormatType}, {a.Value}"; | ||
|
||
lbAttachments.Items.Add(desc); | ||
} | ||
|
@@ -103,8 +102,8 @@ public void SetValues(AttachPropertyCollection attachments) | |
/// <param name="attachments">The attachments collection to update</param> | ||
public void GetValues(AttachPropertyCollection attachments) | ||
{ | ||
attachments.Clear(); | ||
attachments.CloneRange(attach); | ||
attachments?.Clear(); | ||
attachments?.CloneRange(attach); | ||
} | ||
#endregion | ||
|
||
|
@@ -177,7 +176,7 @@ private void btnAdd_Click(object sender, EventArgs e) | |
{ | ||
a.ValueLocation = ValLocValue.Uri; | ||
a.Value = txtFilename.Text; | ||
desc = String.Format("External - {0}, {1}", a.FormatType, a.Value); | ||
desc = $"External - {a.FormatType}, {a.Value}"; | ||
} | ||
else | ||
{ | ||
|
@@ -190,15 +189,15 @@ private void btnAdd_Click(object sender, EventArgs e) | |
a.SetAttachmentBytes(byData); | ||
} | ||
|
||
desc = String.Format("Inline - {0}", a.FormatType); | ||
desc = $"Inline - {a.FormatType}"; | ||
} | ||
|
||
attach.Add(a); | ||
lbAttachments.Items.Add(desc); | ||
} | ||
catch(Exception ex) | ||
{ | ||
string error = String.Format("Unable to add attachment:\n{0}", ex.Message); | ||
string error = $"Unable to add attachment:\n{ex.Message}"; | ||
|
||
if(ex.InnerException != null) | ||
{ | ||
|
@@ -278,7 +277,7 @@ private void btnDetach_Click(object sender, EventArgs e) | |
} | ||
catch(Exception ex) | ||
{ | ||
string error = String.Format("Unable to save attachment:\n{0}", ex.Message); | ||
string error = $"Unable to save attachment:\n{ex.Message}"; | ||
|
||
if(ex.InnerException != null) | ||
{ | ||
|
Oops, something went wrong.