Skip to content

Commit

Permalink
Merge pull request #1295 from Ordisoftware/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Ordisoftware authored Apr 5, 2023
2 parents 5ee50b2 + c4bb3c6 commit 5386955
Show file tree
Hide file tree
Showing 18 changed files with 1,530 additions and 271 deletions.
3 changes: 3 additions & 0 deletions Documents/WebLinks/WebLinks-18-YouTubePlaylistsSciences.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ URL = https://www.youtube.com/playlist?list=PLSn7yTHwEx-BEv_KNGXktzeF8oBTXGoKR
Name = (FR/EN) Bodybuilding et nutrition
URL = https://www.youtube.com/playlist?list=PLSn7yTHwEx-BEAk_k9s5tCMG5ZPwK6KVz

Name = (FR/EN) Bodybuilding et nutrition selon JamCore
URL = https://www.youtube.com/playlist?list=PLSn7yTHwEx-Dxwct2znoLCEugMfSoFVlB

Name = (FR) Mentalisme et psychologie
URL = https://www.youtube.com/playlist?list=PLSn7yTHwEx-B3m_jadFZi3rvJx9LPhHeG

Expand Down
10 changes: 7 additions & 3 deletions Project/Hebrew Calendar (vs2022).csproj
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,10 @@
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<Content Include="..\README.html">
<Link>README.html</Link>
<DependentUpon>README.md</DependentUpon>
</Content>
<Content Include="..\Setup\OrdisoftwareHebrewCalendarSetup.iss">
<Link>Properties\OrdisoftwareHebrewCalendarSetup.iss</Link>
</Content>
Expand Down Expand Up @@ -1173,7 +1177,7 @@
<Version>0.31.0</Version>
</PackageReference>
<PackageReference Include="morelinq">
<Version>3.4.1</Version>
<Version>3.4.2</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.3</Version>
Expand Down Expand Up @@ -1205,12 +1209,12 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="IDisposableAnalyzers">
<Version>4.0.2</Version>
<Version>4.0.4</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Meziantou.Analyzer">
<Version>2.0.26</Version>
<Version>2.0.29</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions Project/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// en utilisant '*', comme indiqué ci-dessous :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: NeutralResourcesLanguage("en")]
[assembly: AssemblyVersion("10.3.0.0")]
[assembly: AssemblyFileVersion("10.3.0.0")]
[assembly: AssemblyVersion("10.4.0.0")]
[assembly: AssemblyFileVersion("10.4.0.0")]
2 changes: 2 additions & 0 deletions Project/Source/Common/Core/Globals/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,5 @@
[assembly: SuppressMessage("Style", "GCop436:As the implementation is relatively long, change this into a standard method implementation.", Justification = "Opinion or N/A (need a parameter for the analyzer)", Scope = "module")]
[assembly: SuppressMessage("Style", "GCop437:Complete the task associated to this \"TODO\" comment.", Justification = "N/A", Scope = "module")]
[assembly: SuppressMessage("Usage", "GCop511:Either remove the parameter documentation node, or describe it properly.", Justification = "Opinion", Scope = "module")]

[assembly: SuppressMessage("CodeQuality", "IDE0079:Retirer la suppression inutile", Justification = "For GCop when no nuget added", Scope = "module")]
12 changes: 6 additions & 6 deletions Project/Source/Common/Core/Globals/Globals.Assembly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,37 +61,37 @@ static public string AssemblyTitleWithVersion
/// Gets information describing the assembly.
/// </summary>
static public string AssemblyDescription
=> GetAttribute<AssemblyDescriptionAttribute>().Description;
=> GetAttribute<AssemblyDescriptionAttribute>()?.Description ?? string.Empty;

/// <summary>
/// Gets the assembly product.
/// </summary>
static public string AssemblyProduct
=> GetAttribute<AssemblyProductAttribute>().Product;
=> GetAttribute<AssemblyProductAttribute>()?.Product ?? string.Empty;

/// <summary>
/// Gets the assembly copyright.
/// </summary>
static public string AssemblyCopyright
=> GetAttribute<AssemblyCopyrightAttribute>().Copyright;
=> GetAttribute<AssemblyCopyrightAttribute>()?.Copyright ?? string.Empty;

/// <summary>
/// Gets the assembly company.
/// </summary>
static public string AssemblyCompany
=> GetAttribute<AssemblyCompanyAttribute>().Company;
=> GetAttribute<AssemblyCompanyAttribute>()?.Company ?? string.Empty;

/// <summary>
/// Gets the assembly trademark.
/// </summary>
static public string AssemblyTrademark
=> GetAttribute<AssemblyTrademarkAttribute>().Trademark;
=> GetAttribute<AssemblyTrademarkAttribute>()?.Trademark ?? string.Empty;

/// <summary>
/// Gets the assembly GUID.
/// </summary>
static public string AssemblyGUID
=> GetAttribute<System.Runtime.InteropServices.GuidAttribute>().Value;
=> GetAttribute<GuidAttribute>()?.Value ?? string.Empty;

/// <summary>
/// Gets the assembly compiled DateTime.
Expand Down
8 changes: 7 additions & 1 deletion Project/Source/Common/Core/Globals/Globals.Files.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// You may add additional accurate notices of copyright ownership.
/// </license>
/// <created> 2016-04 </created>
/// <edited> 2022-03 </edited>
/// <edited> 2023-04 </edited>
namespace Ordisoftware.Core;

/// <summary>
Expand Down Expand Up @@ -149,6 +149,12 @@ static public string ApplicationIconFilePath
static public string ApplicationReadmeMDPath
=> Path.Combine(RootFolderPath, "README.md");

/// <summary>
/// Indicates the file path of the application's readme html file.
/// </summary>
static public string ApplicationReadmeHtmlPath
=> Path.Combine(RootFolderPath, "README.html");

/// <summary>
/// Indicates the file path of the help.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion Project/Source/Common/Core/System/SystemManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static public long SizeOf(this object instance)
try
{
using var stream = new MemoryStream();
new BinaryFormatter().Serialize(stream, instance); // TODO REPLACE
new BinaryFormatter().Serialize(stream, instance);
result = stream.Length;
}
catch ( Exception ex1 )
Expand Down
8 changes: 4 additions & 4 deletions Project/Source/Common/Core/WinControls/CommonMenusControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
/// You may add additional accurate notices of copyright ownership.
/// </license>
/// <created> 2016-04 </created>
/// <edited> 2022-09 </edited>
/// <edited> 2023-04 </edited>
namespace Ordisoftware.Core;

using Markdig;

using TranslationPair = KeyValuePair<string, TranslationsDictionary>;

public sealed partial class CommonMenusControl : UserControl
Expand Down Expand Up @@ -241,6 +239,8 @@ private void ActionOpenWebsiteURL_Click(object sender, EventArgs e)

private void ActionReadme_Click(object sender, EventArgs e)
{
SystemManager.RunShell(Globals.ApplicationReadmeHtmlPath);
/* TODO remove that and markdig
var fileLines = Markdown.ToHtml(File.ReadAllText(Globals.ApplicationReadmeMDPath),
new MarkdownPipelineBuilder().UseAdvancedExtensions().Build());
string filePath = Path.Combine(Path.GetTempPath(), $"{Globals.ApplicationCode}-README.html");
Expand All @@ -253,7 +253,7 @@ private void ActionReadme_Click(object sender, EventArgs e)
SystemManager.TryCatch(() => File.Delete(filePath));
timer.Dispose();
};
timer.Start();
timer.Start();*/
}

private void ActionAbout_Click(object sender, EventArgs e)
Expand Down
32 changes: 16 additions & 16 deletions Project/Source/Forms/MainForm/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 4 additions & 7 deletions Project/Source/Forms/MainForm/MainForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
<value>MonthlyCalendar</value>
</data>
<data name="&gt;&gt;MonthlyCalendar.Type" xml:space="preserve">
<value>CodeProjectCalendar.NET.Calendar, Ordisoftware.Hebrew.Calendar, Version=10.1.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>CodeProjectCalendar.NET.Calendar, Ordisoftware.Hebrew.Calendar, Version=10.4.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;MonthlyCalendar.Parent" xml:space="preserve">
<value>PanelViewMonthlyCalendar</value>
Expand Down Expand Up @@ -3625,9 +3625,6 @@
<data name="ContextMenuParashahSeparator.Size" type="System.Drawing.Size, System.Drawing">
<value>239, 6</value>
</data>
<data name="ContextMenuParashahSeparator.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="ContextMenuDayCelebrationVersesBoard.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
Expand Down Expand Up @@ -3927,7 +3924,7 @@
<value>Navigation window</value>
</data>
<data name="ContextMenuStripDay.Size" type="System.Drawing.Size, System.Drawing">
<value>243, 476</value>
<value>243, 498</value>
</data>
<data name="&gt;&gt;ContextMenuStripDay.Name" xml:space="preserve">
<value>ContextMenuStripDay</value>
Expand All @@ -3943,7 +3940,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAC8
CQAAAk1TRnQBSQFMAgEBBAEAAaABAwGgAQMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CQAAAk1TRnQBSQFMAgEBBAEAAagBAwGoAQMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
Expand Down Expand Up @@ -4180,7 +4177,7 @@
<value>EditExportDataEnumsAsTranslations</value>
</data>
<data name="&gt;&gt;EditExportDataEnumsAsTranslations.Type" xml:space="preserve">
<value>Ordisoftware.Core.ToolStripCheckBoxItem, Ordisoftware.Hebrew.Calendar, Version=10.1.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>Ordisoftware.Core.ToolStripCheckBoxItem, Ordisoftware.Hebrew.Calendar, Version=10.4.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;LabelEnumsAsTranslations.Name" xml:space="preserve">
<value>LabelEnumsAsTranslations</value>
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5386955

Please sign in to comment.