This commit is contained in:
Vichingo455 2025-06-08 17:32:08 +02:00
parent 761fffd541
commit 90dcc6ca3f
5 changed files with 28 additions and 27 deletions

View File

@ -43,12 +43,12 @@
this.backgroundColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.backgroundColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.searchTextInTheWebToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.searchTextInTheWebToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.alwaysOnTopToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.alwaysOnTopToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.wordWrapToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.checkForUpdatesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.checkForUpdatesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.giveAFeedbackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.giveAFeedbackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.aboutWindowsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutWindowsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.wordWrapToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
@ -58,7 +58,6 @@
this.text_area.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.text_area.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.text_area.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.text_area.Location = new System.Drawing.Point(-3, 31); this.text_area.Location = new System.Drawing.Point(-3, 31);
this.text_area.Multiline = true; this.text_area.Multiline = true;
this.text_area.Name = "text_area"; this.text_area.Name = "text_area";
@ -76,7 +75,7 @@
this.helpToolStripMenuItem}); this.helpToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(1054, 28); this.menuStrip1.Size = new System.Drawing.Size(1054, 30);
this.menuStrip1.TabIndex = 1; this.menuStrip1.TabIndex = 1;
this.menuStrip1.Text = "menuStrip1"; this.menuStrip1.Text = "menuStrip1";
// //
@ -90,7 +89,7 @@
this.saveFileWithNameToolStripMenuItem, this.saveFileWithNameToolStripMenuItem,
this.exitToolStripMenuItem}); this.exitToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(46, 24); this.fileToolStripMenuItem.Size = new System.Drawing.Size(46, 26);
this.fileToolStripMenuItem.Text = "File"; this.fileToolStripMenuItem.Text = "File";
// //
// newToolStripMenuItem // newToolStripMenuItem
@ -152,7 +151,7 @@
this.alwaysOnTopToolStripMenuItem, this.alwaysOnTopToolStripMenuItem,
this.wordWrapToolStripMenuItem}); this.wordWrapToolStripMenuItem});
this.viewToolStripMenuItem.Name = "viewToolStripMenuItem"; this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
this.viewToolStripMenuItem.Size = new System.Drawing.Size(55, 24); this.viewToolStripMenuItem.Size = new System.Drawing.Size(55, 26);
this.viewToolStripMenuItem.Text = "View"; this.viewToolStripMenuItem.Text = "View";
this.viewToolStripMenuItem.Click += new System.EventHandler(this.viewToolStripMenuItem_Click_1); this.viewToolStripMenuItem.Click += new System.EventHandler(this.viewToolStripMenuItem_Click_1);
// //
@ -188,6 +187,13 @@
this.alwaysOnTopToolStripMenuItem.Text = "Always on top"; this.alwaysOnTopToolStripMenuItem.Text = "Always on top";
this.alwaysOnTopToolStripMenuItem.Click += new System.EventHandler(this.alwaysOnTopToolStripMenuItem_Click); this.alwaysOnTopToolStripMenuItem.Click += new System.EventHandler(this.alwaysOnTopToolStripMenuItem_Click);
// //
// wordWrapToolStripMenuItem
//
this.wordWrapToolStripMenuItem.Name = "wordWrapToolStripMenuItem";
this.wordWrapToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
this.wordWrapToolStripMenuItem.Text = "Word wrap";
this.wordWrapToolStripMenuItem.Click += new System.EventHandler(this.wordWrapToolStripMenuItem_Click);
//
// helpToolStripMenuItem // helpToolStripMenuItem
// //
this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -196,7 +202,7 @@
this.aboutToolStripMenuItem, this.aboutToolStripMenuItem,
this.aboutWindowsToolStripMenuItem}); this.aboutWindowsToolStripMenuItem});
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
this.helpToolStripMenuItem.Size = new System.Drawing.Size(30, 24); this.helpToolStripMenuItem.Size = new System.Drawing.Size(30, 26);
this.helpToolStripMenuItem.Text = "?"; this.helpToolStripMenuItem.Text = "?";
this.helpToolStripMenuItem.Click += new System.EventHandler(this.viewToolStripMenuItem_Click); this.helpToolStripMenuItem.Click += new System.EventHandler(this.viewToolStripMenuItem_Click);
// //
@ -210,6 +216,7 @@
// //
// giveAFeedbackToolStripMenuItem // giveAFeedbackToolStripMenuItem
// //
this.giveAFeedbackToolStripMenuItem.Enabled = false;
this.giveAFeedbackToolStripMenuItem.Name = "giveAFeedbackToolStripMenuItem"; this.giveAFeedbackToolStripMenuItem.Name = "giveAFeedbackToolStripMenuItem";
this.giveAFeedbackToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F8; this.giveAFeedbackToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F8;
this.giveAFeedbackToolStripMenuItem.Size = new System.Drawing.Size(265, 26); this.giveAFeedbackToolStripMenuItem.Size = new System.Drawing.Size(265, 26);
@ -233,13 +240,6 @@
this.aboutWindowsToolStripMenuItem.Visible = false; this.aboutWindowsToolStripMenuItem.Visible = false;
this.aboutWindowsToolStripMenuItem.Click += new System.EventHandler(this.aboutWindowsToolStripMenuItem_Click); this.aboutWindowsToolStripMenuItem.Click += new System.EventHandler(this.aboutWindowsToolStripMenuItem_Click);
// //
// wordWrapToolStripMenuItem
//
this.wordWrapToolStripMenuItem.Name = "wordWrapToolStripMenuItem";
this.wordWrapToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
this.wordWrapToolStripMenuItem.Text = "Word wrap";
this.wordWrapToolStripMenuItem.Click += new System.EventHandler(this.wordWrapToolStripMenuItem_Click);
//
// Form1 // Form1
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);

View File

@ -20,7 +20,7 @@ namespace Notepad
{ {
// Update strings // Update strings
private readonly string _releaseURL = "https://raw.githubusercontent.com/Vichingo455/Notepad/master/latest.txt"; private readonly string _releaseURL = "http://git.vichingo455.freeddns.org/Vichingo455/Notepad/raw/branch/master/latest.txt";
public Version CurrentVersion = new Version(Application.ProductVersion); public Version CurrentVersion = new Version(Application.ProductVersion);
public Version LatestVersion; public Version LatestVersion;
@ -40,7 +40,7 @@ namespace Notepad
OpenFileDialog ofd = new OpenFileDialog(); OpenFileDialog ofd = new OpenFileDialog();
ofd.Title = "Open a file"; ofd.Title = "Open a file";
ofd.Multiselect = false; ofd.Multiselect = false;
ofd.Filter = "*.txt|*.txt|*.*|*.*"; ofd.Filter = "Text file|*.txt|All files|*.*";
ofd.DefaultExt = "*.txt"; ofd.DefaultExt = "*.txt";
if (ofd.ShowDialog() == DialogResult.OK) if (ofd.ShowDialog() == DialogResult.OK)
{ {
@ -75,7 +75,7 @@ namespace Notepad
{ {
SaveFileDialog sfd = new SaveFileDialog(); SaveFileDialog sfd = new SaveFileDialog();
sfd.Title = "Save the file"; sfd.Title = "Save the file";
sfd.Filter = "*.txt|*.txt|*.*|*.*"; sfd.Filter = "Text file|*.txt|All files|*.*";
sfd.DefaultExt = "*.txt"; sfd.DefaultExt = "*.txt";
if (sfd.ShowDialog() == DialogResult.OK) if (sfd.ShowDialog() == DialogResult.OK)
{ {
@ -154,7 +154,7 @@ namespace Notepad
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{ {
MessageBox.Show("Notepad\nVersion " + Program.GetCurrentVersionTostring() + "" + "\nMaded by Vichingo455\nCopyright (C) 2022 Vichingo455. All rights reserved.\n\n\nReleased under GPL 3.0 License: you are free to\n- Modify\n- Use for business\n- Distribute\n- Use at home\n\nBut you have:\n- No liability\n- No warranty\n\nAt these conditions:\n- License and copyright notice\n- State changes\n- Disclose source\n- Same license", Text); MessageBox.Show("Notepad\nVersion " + Program.GetCurrentVersionTostring() + "" + "\nMade by Vichingo455\nCopyright (C) 2025 Vichingo455. All rights reserved.\n\n\nReleased under GPL 3.0 License: you are free to\n- Modify\n- Use for business\n- Distribute\n- Use at home\n\nBut you have:\n- No liability\n- No warranty\n\nAt these conditions:\n- License and copyright notice\n- State changes\n- Disclose source\n- Same license", Text);
} }
/// <summary> /// <summary>
/// Check for updates /// Check for updates
@ -208,7 +208,7 @@ namespace Notepad
{ {
if (MessageBox.Show("This new version is available:" + " " + LatestVersion + ". You are using the version" + " " + CurrentVersion + ". Do you want to open the download website?", Text, MessageBoxButtons.YesNo) == DialogResult.Yes) // New release available! if (MessageBox.Show("This new version is available:" + " " + LatestVersion + ". You are using the version" + " " + CurrentVersion + ". Do you want to open the download website?", Text, MessageBoxButtons.YesNo) == DialogResult.Yes) // New release available!
{ {
Process.Start("https://github.com/Vichingo455/Notepad/releases/tag/" + LatestVersion); Process.Start("https://git.vichingo455.freeddns.org/Vichingo455/Notepad/releases/tag/" + LatestVersion);
} }
} }
} }

View File

@ -52,12 +52,13 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType> <DebugType>none</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>0</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<ApplicationIcon>notepad.ico</ApplicationIcon> <ApplicationIcon>notepad.ico</ApplicationIcon>
@ -72,10 +73,11 @@
<ManifestKeyFile>Notepad_TemporaryKey.pfx</ManifestKeyFile> <ManifestKeyFile>Notepad_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<SignAssembly>true</SignAssembly> <SignAssembly>false</SignAssembly>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<AssemblyOriginatorKeyFile>Notepad_TemporaryKey.pfx</AssemblyOriginatorKeyFile> <AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<ManifestTimestampUrl>http://timestamp.digicert.com</ManifestTimestampUrl> <ManifestTimestampUrl>http://timestamp.digicert.com</ManifestTimestampUrl>
@ -124,7 +126,6 @@
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
</Compile> </Compile>
<None Include="Notepad_TemporaryKey.pfx" />
<None Include="Properties\app.manifest" /> <None Include="Properties\app.manifest" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Vichingo455")] [assembly: AssemblyCompany("Vichingo455")]
[assembly: AssemblyProduct("Notepad")] [assembly: AssemblyProduct("Notepad")]
[assembly: AssemblyCopyright("Copyright © Vichingo455 2022")] [assembly: AssemblyCopyright("Copyright © 2025 Vichingo455")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build // È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
// usando l'asterisco '*' come illustrato di seguito: // usando l'asterisco '*' come illustrato di seguito:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.3.0")] [assembly: AssemblyVersion("1.1.3.1")]
[assembly: AssemblyFileVersion("1.1.3.0")] [assembly: AssemblyFileVersion("1.1.3.1")]

View File

@ -1 +1 @@
1.1.3.0 1.1.3.1