Compare commits
13 Commits
d12d4e887c
...
761fffd541
Author | SHA1 | Date |
---|---|---|
|
761fffd541 | |
|
9356826d42 | |
|
3a22188ab5 | |
|
5c29d3f81a | |
|
e0f9eef473 | |
|
cfc5f21bce | |
|
0afc96c9d6 | |
|
43712da0a3 | |
|
beb0ae60de | |
|
65e8c15a0c | |
|
78c89b0705 | |
|
36eacb8d14 | |
|
746f86bdc4 |
|
@ -0,0 +1,70 @@
|
||||||
|
# For most projects, this workflow file will not need changing; you simply need
|
||||||
|
# to commit it to your repository.
|
||||||
|
#
|
||||||
|
# You may wish to alter this file to override the set of languages analyzed,
|
||||||
|
# or to provide custom queries or build logic.
|
||||||
|
#
|
||||||
|
# ******** NOTE ********
|
||||||
|
# We have attempted to detect the languages in your repository. Please check
|
||||||
|
# the `language` matrix defined below to confirm you have the correct set of
|
||||||
|
# supported CodeQL languages.
|
||||||
|
#
|
||||||
|
name: "CodeQL"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
# The branches below must be a subset of the branches above
|
||||||
|
branches: [ master ]
|
||||||
|
schedule:
|
||||||
|
- cron: '38 3 * * 3'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
analyze:
|
||||||
|
name: Analyze
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
language: [ 'csharp' ]
|
||||||
|
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
||||||
|
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Initializes the CodeQL tools for scanning.
|
||||||
|
- name: Initialize CodeQL
|
||||||
|
uses: github/codeql-action/init@v1
|
||||||
|
with:
|
||||||
|
languages: ${{ matrix.language }}
|
||||||
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
|
# By default, queries listed here will override any specified in a config file.
|
||||||
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
|
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||||
|
|
||||||
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
|
- name: Autobuild
|
||||||
|
uses: github/codeql-action/autobuild@v1
|
||||||
|
|
||||||
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
|
# 📚 https://git.io/JvXDl
|
||||||
|
|
||||||
|
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||||
|
# and modify them (or add more) to build your code if your project
|
||||||
|
# uses a compiled language
|
||||||
|
|
||||||
|
#- run: |
|
||||||
|
# make bootstrap
|
||||||
|
# make release
|
||||||
|
|
||||||
|
- name: Perform CodeQL Analysis
|
||||||
|
uses: github/codeql-action/analyze@v1
|
|
@ -39,14 +39,16 @@
|
||||||
this.saveFileWithNameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.saveFileWithNameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.alwaysOnTopToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.characterStyleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.characterStyleToolStripMenuItem = 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.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();
|
||||||
//
|
//
|
||||||
|
@ -56,6 +58,7 @@
|
||||||
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";
|
||||||
|
@ -73,7 +76,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, 30);
|
this.menuStrip1.Size = new System.Drawing.Size(1054, 28);
|
||||||
this.menuStrip1.TabIndex = 1;
|
this.menuStrip1.TabIndex = 1;
|
||||||
this.menuStrip1.Text = "menuStrip1";
|
this.menuStrip1.Text = "menuStrip1";
|
||||||
//
|
//
|
||||||
|
@ -87,7 +90,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, 26);
|
this.fileToolStripMenuItem.Size = new System.Drawing.Size(46, 24);
|
||||||
this.fileToolStripMenuItem.Text = "File";
|
this.fileToolStripMenuItem.Text = "File";
|
||||||
//
|
//
|
||||||
// newToolStripMenuItem
|
// newToolStripMenuItem
|
||||||
|
@ -143,22 +146,16 @@
|
||||||
// viewToolStripMenuItem
|
// viewToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
this.alwaysOnTopToolStripMenuItem,
|
|
||||||
this.characterStyleToolStripMenuItem,
|
this.characterStyleToolStripMenuItem,
|
||||||
this.searchTextInTheWebToolStripMenuItem});
|
this.backgroundColorToolStripMenuItem,
|
||||||
|
this.searchTextInTheWebToolStripMenuItem,
|
||||||
|
this.alwaysOnTopToolStripMenuItem,
|
||||||
|
this.wordWrapToolStripMenuItem});
|
||||||
this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
|
this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
|
||||||
this.viewToolStripMenuItem.Size = new System.Drawing.Size(55, 26);
|
this.viewToolStripMenuItem.Size = new System.Drawing.Size(55, 24);
|
||||||
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);
|
||||||
//
|
//
|
||||||
// alwaysOnTopToolStripMenuItem
|
|
||||||
//
|
|
||||||
this.alwaysOnTopToolStripMenuItem.Name = "alwaysOnTopToolStripMenuItem";
|
|
||||||
this.alwaysOnTopToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F5;
|
|
||||||
this.alwaysOnTopToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
|
|
||||||
this.alwaysOnTopToolStripMenuItem.Text = "Always on top";
|
|
||||||
this.alwaysOnTopToolStripMenuItem.Click += new System.EventHandler(this.alwaysOnTopToolStripMenuItem_Click);
|
|
||||||
//
|
|
||||||
// characterStyleToolStripMenuItem
|
// characterStyleToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.characterStyleToolStripMenuItem.Name = "characterStyleToolStripMenuItem";
|
this.characterStyleToolStripMenuItem.Name = "characterStyleToolStripMenuItem";
|
||||||
|
@ -167,6 +164,14 @@
|
||||||
this.characterStyleToolStripMenuItem.Text = "Font style";
|
this.characterStyleToolStripMenuItem.Text = "Font style";
|
||||||
this.characterStyleToolStripMenuItem.Click += new System.EventHandler(this.characterStyleToolStripMenuItem_Click_1);
|
this.characterStyleToolStripMenuItem.Click += new System.EventHandler(this.characterStyleToolStripMenuItem_Click_1);
|
||||||
//
|
//
|
||||||
|
// backgroundColorToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.backgroundColorToolStripMenuItem.Name = "backgroundColorToolStripMenuItem";
|
||||||
|
this.backgroundColorToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F7)));
|
||||||
|
this.backgroundColorToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
|
||||||
|
this.backgroundColorToolStripMenuItem.Text = "Window color";
|
||||||
|
this.backgroundColorToolStripMenuItem.Click += new System.EventHandler(this.backgroundColorToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
// searchTextInTheWebToolStripMenuItem
|
// searchTextInTheWebToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.searchTextInTheWebToolStripMenuItem.Name = "searchTextInTheWebToolStripMenuItem";
|
this.searchTextInTheWebToolStripMenuItem.Name = "searchTextInTheWebToolStripMenuItem";
|
||||||
|
@ -175,6 +180,14 @@
|
||||||
this.searchTextInTheWebToolStripMenuItem.Text = "Search text in the web";
|
this.searchTextInTheWebToolStripMenuItem.Text = "Search text in the web";
|
||||||
this.searchTextInTheWebToolStripMenuItem.Click += new System.EventHandler(this.searchTextInTheWebToolStripMenuItem_Click);
|
this.searchTextInTheWebToolStripMenuItem.Click += new System.EventHandler(this.searchTextInTheWebToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
|
// alwaysOnTopToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.alwaysOnTopToolStripMenuItem.Name = "alwaysOnTopToolStripMenuItem";
|
||||||
|
this.alwaysOnTopToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F5;
|
||||||
|
this.alwaysOnTopToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
|
||||||
|
this.alwaysOnTopToolStripMenuItem.Text = "Always on top";
|
||||||
|
this.alwaysOnTopToolStripMenuItem.Click += new System.EventHandler(this.alwaysOnTopToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
// helpToolStripMenuItem
|
// helpToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
|
@ -183,7 +196,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, 26);
|
this.helpToolStripMenuItem.Size = new System.Drawing.Size(30, 24);
|
||||||
this.helpToolStripMenuItem.Text = "?";
|
this.helpToolStripMenuItem.Text = "?";
|
||||||
this.helpToolStripMenuItem.Click += new System.EventHandler(this.viewToolStripMenuItem_Click);
|
this.helpToolStripMenuItem.Click += new System.EventHandler(this.viewToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
|
@ -220,6 +233,13 @@
|
||||||
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);
|
||||||
|
@ -259,6 +279,8 @@
|
||||||
private System.Windows.Forms.ToolStripMenuItem aboutWindowsToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem aboutWindowsToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem characterStyleToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem characterStyleToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem searchTextInTheWebToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem searchTextInTheWebToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem backgroundColorToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem wordWrapToolStripMenuItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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", Text);
|
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);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check for updates
|
/// Check for updates
|
||||||
|
@ -191,24 +191,30 @@ namespace Notepad
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var equals = LatestVersion.CompareTo(CurrentVersion);
|
||||||
|
|
||||||
var equals = LatestVersion.CompareTo(CurrentVersion);
|
if (equals == 0)
|
||||||
|
|
||||||
if (equals == 0)
|
|
||||||
{
|
|
||||||
// Up-to-date
|
|
||||||
MessageBox.Show("The program is up-to-date",Text,MessageBoxButtons.OK);
|
|
||||||
}
|
|
||||||
else if (equals < 0)
|
|
||||||
{
|
|
||||||
MessageBox.Show("You are using an unofficial release of Notepad", Text, MessageBoxButtons.OK); // Unofficial
|
|
||||||
}
|
|
||||||
else // 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);
|
// Up-to-date
|
||||||
|
MessageBox.Show("The program is up-to-date", Text, MessageBoxButtons.OK);
|
||||||
}
|
}
|
||||||
|
else if (equals < 0)
|
||||||
|
{
|
||||||
|
MessageBox.Show("You are using an unofficial release of Notepad", Text, MessageBoxButtons.OK); // Unofficial
|
||||||
|
}
|
||||||
|
else // 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -317,6 +323,8 @@ namespace Notepad
|
||||||
FontDialog stl = new FontDialog();
|
FontDialog stl = new FontDialog();
|
||||||
stl.ShowColor = true;
|
stl.ShowColor = true;
|
||||||
stl.AllowVectorFonts = true;
|
stl.AllowVectorFonts = true;
|
||||||
|
stl.Font = text_area.Font;
|
||||||
|
stl.Color = text_area.ForeColor;
|
||||||
if (stl.ShowDialog() == DialogResult.OK)
|
if (stl.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
text_area.Font = stl.Font;
|
text_area.Font = stl.Font;
|
||||||
|
@ -369,11 +377,54 @@ namespace Notepad
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void backgroundColorToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ColorDialog clr = new ColorDialog();
|
||||||
|
clr.Color = text_area.BackColor;
|
||||||
|
if (clr.ShowDialog() == DialogResult.OK)
|
||||||
|
{
|
||||||
|
text_area.BackColor = clr.Color;
|
||||||
|
BackColor = clr.Color;
|
||||||
|
menuStrip1.BackColor = clr.Color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var dialog = MessageBox.Show("The following exception occured: " + ex.Message + "\nDo you want to send a crash report", this.Text + " - Critical error", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
||||||
|
if (dialog == DialogResult.Yes)
|
||||||
|
{
|
||||||
|
Program.SendCrashReport(ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void wordWrapToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (wordWrapToolStripMenuItem.Checked == true)
|
||||||
|
{
|
||||||
|
text_area.WordWrap = false;
|
||||||
|
wordWrapToolStripMenuItem.Checked = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
text_area.WordWrap = true;
|
||||||
|
wordWrapToolStripMenuItem.Checked = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public class Global
|
public class Global
|
||||||
{
|
{
|
||||||
public static string savefilename;
|
public static string savefilename;
|
||||||
public static string confidential;
|
public static string confidential;
|
||||||
public static string font_text;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace Notepad
|
||||||
|
|
||||||
body = HttpUtility.UrlEncode(body);
|
body = HttpUtility.UrlEncode(body);
|
||||||
|
|
||||||
string uri = $"https://github.com/builtbybel/ThisIsWin11/issues/new?labels=crash+report&title={header}&body={body}";
|
string uri = $"https://github.com/Vichingo455/Notepad/issues/new?labels=crash+report&title={header}&body={body}";
|
||||||
Process.Start(uri);
|
Process.Start(uri);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -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.1.0")]
|
[assembly: AssemblyVersion("1.1.3.0")]
|
||||||
[assembly: AssemblyFileVersion("1.1.1.0")]
|
[assembly: AssemblyFileVersion("1.1.3.0")]
|
||||||
|
|
|
@ -23,7 +23,7 @@ alt="GitHub issues">
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
## Command line usage
|
## Command line usage
|
||||||
`Notepad.exe <file>`
|
`Notepad.exe <file>`
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1.1.0.0
|
1.1.3.0
|
||||||
|
|
Loading…
Reference in New Issue