13 Commits
Author SHA1 Message Date
ChristopherandGitHub 38a8a97028 Update README.md 2021-03-17 09:05:45 +01:00
Christopher 0abffcad2f zmiany 2021-01-27 17:53:57 +01:00
ChristopherandGitHub 4b2c97bacc Update download 2021-01-26 10:49:30 +01:00
ChristopherandGitHub 269fc5bd6b Update version 2021-01-26 10:49:21 +01:00
ChristopherandGitHub 53903cec97 Update changelog 2021-01-26 10:49:08 +01:00
ChristopherandGitHub b77c9807cb Update changelog 2021-01-26 10:48:51 +01:00
ChristopherandGitHub f74b9e5f87 Update changelog 2021-01-26 08:10:57 +01:00
ChristopherandGitHub 73f206d52d Update version 2021-01-26 08:10:08 +01:00
Christopher 1c7b32e783 Merge branch 'main' of https://github.com/KrzysiekSiemv/Notepad into main 2021-01-26 08:06:56 +01:00
Christopher d43616384c Wersja wydania 1.0.3.0 2021-01-26 08:06:22 +01:00
ChristopherandGitHub 5506eee9d6 Update changelog 2021-01-26 00:48:16 +01:00
ChristopherandGitHub 2d848119c7 Update download 2021-01-26 00:47:23 +01:00
ChristopherandGitHub 00dd1c7db9 Update version 2021-01-26 00:47:03 +01:00
45 changed files with 4328 additions and 96 deletions
Binary file not shown.
+6
View File
@@ -23,6 +23,12 @@
<setting name="FirstRun" serializeAs="String">
<value>True</value>
</setting>
<setting name="KolorCzcionki" serializeAs="String">
<value>Black</value>
</setting>
<setting name="ZawijanieWierszy" serializeAs="String">
<value>False</value>
</setting>
</Notatnik.Properties.Settings>
<Notepad_v2.Properties.Settings>
<setting name="Czcionka" serializeAs="String">
+191 -43
View File
@@ -59,6 +59,11 @@ namespace Notatnik
this.cofnijToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.przywrócToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.nowyDokumentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.zapiszToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.zapiszJakoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.otwórzToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.zmieńKolorTłaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.zmieńKolorCzcionkiToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
@@ -66,6 +71,7 @@ namespace Notatnik
this.kursywaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.podkreślenieToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.updateSeparator = new System.Windows.Forms.ToolStripSeparator();
this.informacjeOProgramieToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.updateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
@@ -78,26 +84,27 @@ namespace Notatnik
this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
this.colorDialog1 = new System.Windows.Forms.ColorDialog();
this.colorDialog2 = new System.Windows.Forms.ColorDialog();
this.drukujToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.panel3 = new System.Windows.Forms.Panel();
this.button18 = new System.Windows.Forms.Button();
this.button19 = new System.Windows.Forms.Button();
this.zawijanieWierszyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.panel1.SuspendLayout();
this.contextMenuStrip1.SuspendLayout();
this.statusStrip1.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(48)))));
this.panel1.Controls.Add(this.button15);
this.panel1.Controls.Add(this.button16);
this.panel1.Controls.Add(this.button17);
this.panel1.Controls.Add(this.button14);
this.panel1.Controls.Add(this.button13);
this.panel1.Controls.Add(this.button18);
this.panel1.Controls.Add(this.button12);
this.panel1.Controls.Add(this.button11);
this.panel1.Controls.Add(this.button10);
this.panel1.Controls.Add(this.button9);
this.panel1.Controls.Add(this.button8);
this.panel1.Controls.Add(this.button7);
this.panel1.Controls.Add(this.button6);
this.panel1.Controls.Add(this.button5);
this.panel1.Controls.Add(this.button4);
this.panel1.Controls.Add(this.button3);
@@ -106,19 +113,18 @@ namespace Notatnik
this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(44, 639);
this.panel1.Size = new System.Drawing.Size(44, 439);
this.panel1.TabIndex = 0;
//
// button15
//
this.button15.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button15.FlatAppearance.BorderSize = 0;
this.button15.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.button15.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.button15.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button15.Font = new System.Drawing.Font("Segoe MDL2 Assets", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button15.ForeColor = System.Drawing.Color.White;
this.button15.Location = new System.Drawing.Point(5, 481);
this.button15.Location = new System.Drawing.Point(72, 0);
this.button15.Margin = new System.Windows.Forms.Padding(0);
this.button15.Name = "button15";
this.button15.Size = new System.Drawing.Size(36, 36);
@@ -128,17 +134,18 @@ namespace Notatnik
this.toolTip1.SetToolTip(this.button15, "Podkreślenie");
this.button15.UseVisualStyleBackColor = true;
this.button15.Click += new System.EventHandler(this.button15_Click);
this.button15.MouseEnter += new System.EventHandler(this.button15_MouseEnter);
this.button15.MouseLeave += new System.EventHandler(this.button15_MouseLeave);
//
// button16
//
this.button16.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button16.FlatAppearance.BorderSize = 0;
this.button16.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.button16.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.button16.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button16.Font = new System.Drawing.Font("Segoe MDL2 Assets", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button16.ForeColor = System.Drawing.Color.White;
this.button16.Location = new System.Drawing.Point(5, 445);
this.button16.Location = new System.Drawing.Point(36, 0);
this.button16.Margin = new System.Windows.Forms.Padding(0);
this.button16.Name = "button16";
this.button16.Size = new System.Drawing.Size(36, 36);
@@ -148,17 +155,18 @@ namespace Notatnik
this.toolTip1.SetToolTip(this.button16, "Kursywa");
this.button16.UseVisualStyleBackColor = true;
this.button16.Click += new System.EventHandler(this.button16_Click);
this.button16.MouseEnter += new System.EventHandler(this.button16_MouseEnter);
this.button16.MouseLeave += new System.EventHandler(this.button16_MouseLeave);
//
// button17
//
this.button17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button17.FlatAppearance.BorderSize = 0;
this.button17.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.button17.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.button17.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button17.Font = new System.Drawing.Font("Segoe MDL2 Assets", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button17.ForeColor = System.Drawing.Color.White;
this.button17.Location = new System.Drawing.Point(5, 409);
this.button17.Location = new System.Drawing.Point(0, 0);
this.button17.Margin = new System.Windows.Forms.Padding(0);
this.button17.Name = "button17";
this.button17.Size = new System.Drawing.Size(36, 36);
@@ -168,17 +176,18 @@ namespace Notatnik
this.toolTip1.SetToolTip(this.button17, "Pobrugienie");
this.button17.UseVisualStyleBackColor = true;
this.button17.Click += new System.EventHandler(this.button17_Click);
this.button17.MouseEnter += new System.EventHandler(this.button17_MouseEnter);
this.button17.MouseLeave += new System.EventHandler(this.button17_MouseLeave);
//
// button14
//
this.button14.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button14.FlatAppearance.BorderSize = 0;
this.button14.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.button14.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.button14.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button14.Font = new System.Drawing.Font("Segoe MDL2 Assets", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button14.ForeColor = System.Drawing.Color.White;
this.button14.Location = new System.Drawing.Point(4, 529);
this.button14.Location = new System.Drawing.Point(108, 0);
this.button14.Margin = new System.Windows.Forms.Padding(0);
this.button14.Name = "button14";
this.button14.Size = new System.Drawing.Size(36, 36);
@@ -193,14 +202,13 @@ namespace Notatnik
//
// button13
//
this.button13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button13.FlatAppearance.BorderSize = 0;
this.button13.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.button13.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.button13.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button13.Font = new System.Drawing.Font("Segoe MDL2 Assets", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button13.ForeColor = System.Drawing.Color.White;
this.button13.Location = new System.Drawing.Point(4, 565);
this.button13.Location = new System.Drawing.Point(144, 0);
this.button13.Margin = new System.Windows.Forms.Padding(0);
this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(36, 36);
@@ -343,14 +351,13 @@ namespace Notatnik
//
// button6
//
this.button6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button6.FlatAppearance.BorderSize = 0;
this.button6.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.button6.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button6.Font = new System.Drawing.Font("Segoe MDL2 Assets", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button6.ForeColor = System.Drawing.Color.White;
this.button6.Location = new System.Drawing.Point(4, 601);
this.button6.Location = new System.Drawing.Point(180, 0);
this.button6.Margin = new System.Windows.Forms.Padding(0);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(36, 36);
@@ -474,7 +481,7 @@ namespace Notatnik
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(44, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(984, 10);
this.panel2.Size = new System.Drawing.Size(740, 10);
this.panel2.TabIndex = 1;
//
// richTextBox1
@@ -489,11 +496,12 @@ namespace Notatnik
this.richTextBox1.ForeColor = System.Drawing.Color.Black;
this.richTextBox1.Location = new System.Drawing.Point(44, 10);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical;
this.richTextBox1.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedBoth;
this.richTextBox1.ShowSelectionMargin = true;
this.richTextBox1.Size = new System.Drawing.Size(984, 629);
this.richTextBox1.Size = new System.Drawing.Size(740, 429);
this.richTextBox1.TabIndex = 2;
this.richTextBox1.Text = "";
this.richTextBox1.WordWrap = false;
this.richTextBox1.SelectionChanged += new System.EventHandler(this.richTextBox1_SelectionChanged);
this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged);
//
@@ -507,6 +515,13 @@ namespace Notatnik
this.cofnijToolStripMenuItem,
this.przywrócToolStripMenuItem,
this.toolStripSeparator2,
this.nowyDokumentToolStripMenuItem,
this.zapiszToolStripMenuItem,
this.zapiszJakoToolStripMenuItem,
this.otwórzToolStripMenuItem,
this.drukujToolStripMenuItem,
this.toolStripSeparator4,
this.zawijanieWierszyToolStripMenuItem,
this.zmieńKolorTłaToolStripMenuItem,
this.zmieńKolorCzcionkiToolStripMenuItem,
this.toolStripSeparator3,
@@ -514,15 +529,16 @@ namespace Notatnik
this.kursywaToolStripMenuItem,
this.podkreślenieToolStripMenuItem,
this.updateSeparator,
this.informacjeOProgramieToolStripMenuItem,
this.updateToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(185, 292);
this.contextMenuStrip1.Size = new System.Drawing.Size(214, 452);
//
// kopiujToolStripMenuItem
//
this.kopiujToolStripMenuItem.Name = "kopiujToolStripMenuItem";
this.kopiujToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
this.kopiujToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.kopiujToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.kopiujToolStripMenuItem.Text = "Kopiuj";
this.kopiujToolStripMenuItem.Click += new System.EventHandler(this.kopiujToolStripMenuItem_Click);
//
@@ -530,7 +546,7 @@ namespace Notatnik
//
this.wytnijToolStripMenuItem.Name = "wytnijToolStripMenuItem";
this.wytnijToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
this.wytnijToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.wytnijToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.wytnijToolStripMenuItem.Text = "Wytnij";
this.wytnijToolStripMenuItem.Click += new System.EventHandler(this.wytnijToolStripMenuItem_Click);
//
@@ -538,20 +554,20 @@ namespace Notatnik
//
this.wklejToolStripMenuItem.Name = "wklejToolStripMenuItem";
this.wklejToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
this.wklejToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.wklejToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.wklejToolStripMenuItem.Text = "Wklej";
this.wklejToolStripMenuItem.Click += new System.EventHandler(this.wklejToolStripMenuItem_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(181, 6);
this.toolStripSeparator1.Size = new System.Drawing.Size(210, 6);
//
// cofnijToolStripMenuItem
//
this.cofnijToolStripMenuItem.Name = "cofnijToolStripMenuItem";
this.cofnijToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
this.cofnijToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.cofnijToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.cofnijToolStripMenuItem.Text = "Cofnij";
this.cofnijToolStripMenuItem.Click += new System.EventHandler(this.cofnijToolStripMenuItem_Click);
//
@@ -559,39 +575,77 @@ namespace Notatnik
//
this.przywrócToolStripMenuItem.Name = "przywrócToolStripMenuItem";
this.przywrócToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
this.przywrócToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.przywrócToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.przywrócToolStripMenuItem.Text = "Przywróć";
this.przywrócToolStripMenuItem.Click += new System.EventHandler(this.przywrócToolStripMenuItem_Click);
//
// toolStripSeparator2
//
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(181, 6);
this.toolStripSeparator2.Size = new System.Drawing.Size(210, 6);
//
// nowyDokumentToolStripMenuItem
//
this.nowyDokumentToolStripMenuItem.Name = "nowyDokumentToolStripMenuItem";
this.nowyDokumentToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
this.nowyDokumentToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.nowyDokumentToolStripMenuItem.Text = "Nowy dokument";
this.nowyDokumentToolStripMenuItem.Click += new System.EventHandler(this.nowyDokumentToolStripMenuItem_Click);
//
// zapiszToolStripMenuItem
//
this.zapiszToolStripMenuItem.Name = "zapiszToolStripMenuItem";
this.zapiszToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
this.zapiszToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.zapiszToolStripMenuItem.Text = "Zapisz";
this.zapiszToolStripMenuItem.Click += new System.EventHandler(this.zapiszToolStripMenuItem_Click);
//
// zapiszJakoToolStripMenuItem
//
this.zapiszJakoToolStripMenuItem.Name = "zapiszJakoToolStripMenuItem";
this.zapiszJakoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.S)));
this.zapiszJakoToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.zapiszJakoToolStripMenuItem.Text = "Zapisz jako...";
this.zapiszJakoToolStripMenuItem.Click += new System.EventHandler(this.zapiszJakoToolStripMenuItem_Click);
//
// otwórzToolStripMenuItem
//
this.otwórzToolStripMenuItem.Name = "otwórzToolStripMenuItem";
this.otwórzToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
this.otwórzToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.otwórzToolStripMenuItem.Text = "Otwórz";
this.otwórzToolStripMenuItem.Click += new System.EventHandler(this.otwórzToolStripMenuItem_Click);
//
// toolStripSeparator4
//
this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(210, 6);
//
// zmieńKolorTłaToolStripMenuItem
//
this.zmieńKolorTłaToolStripMenuItem.Name = "zmieńKolorTłaToolStripMenuItem";
this.zmieńKolorTłaToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.zmieńKolorTłaToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.zmieńKolorTłaToolStripMenuItem.Text = "Zmień kolor tła";
this.zmieńKolorTłaToolStripMenuItem.Click += new System.EventHandler(this.zmieńKolorTłaToolStripMenuItem_Click);
//
// zmieńKolorCzcionkiToolStripMenuItem
//
this.zmieńKolorCzcionkiToolStripMenuItem.Name = "zmieńKolorCzcionkiToolStripMenuItem";
this.zmieńKolorCzcionkiToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.zmieńKolorCzcionkiToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.zmieńKolorCzcionkiToolStripMenuItem.Text = "Zmień kolor czcionki";
this.zmieńKolorCzcionkiToolStripMenuItem.Click += new System.EventHandler(this.zmieńKolorCzcionkiToolStripMenuItem_Click);
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(181, 6);
this.toolStripSeparator3.Size = new System.Drawing.Size(210, 6);
//
// pogrubienieToolStripMenuItem
//
this.pogrubienieToolStripMenuItem.Name = "pogrubienieToolStripMenuItem";
this.pogrubienieToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.B)));
this.pogrubienieToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.pogrubienieToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.pogrubienieToolStripMenuItem.Text = "Pogrubienie";
this.pogrubienieToolStripMenuItem.Click += new System.EventHandler(this.pogrubienieToolStripMenuItem_Click);
//
@@ -599,7 +653,7 @@ namespace Notatnik
//
this.kursywaToolStripMenuItem.Name = "kursywaToolStripMenuItem";
this.kursywaToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.I)));
this.kursywaToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.kursywaToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.kursywaToolStripMenuItem.Text = "Kursywa";
this.kursywaToolStripMenuItem.Click += new System.EventHandler(this.kursywaToolStripMenuItem_Click);
//
@@ -607,21 +661,27 @@ namespace Notatnik
//
this.podkreślenieToolStripMenuItem.Name = "podkreślenieToolStripMenuItem";
this.podkreślenieToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.U)));
this.podkreślenieToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.podkreślenieToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.podkreślenieToolStripMenuItem.Text = "Podkreślenie";
this.podkreślenieToolStripMenuItem.Click += new System.EventHandler(this.podkreślenieToolStripMenuItem_Click);
//
// updateSeparator
//
this.updateSeparator.Name = "updateSeparator";
this.updateSeparator.Size = new System.Drawing.Size(181, 6);
this.updateSeparator.Visible = false;
this.updateSeparator.Size = new System.Drawing.Size(210, 6);
//
// informacjeOProgramieToolStripMenuItem
//
this.informacjeOProgramieToolStripMenuItem.Name = "informacjeOProgramieToolStripMenuItem";
this.informacjeOProgramieToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.informacjeOProgramieToolStripMenuItem.Text = "Informacje o programie";
this.informacjeOProgramieToolStripMenuItem.Click += new System.EventHandler(this.informacjeOProgramieToolStripMenuItem_Click);
//
// updateToolStripMenuItem
//
this.updateToolStripMenuItem.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold);
this.updateToolStripMenuItem.Name = "updateToolStripMenuItem";
this.updateToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.updateToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.updateToolStripMenuItem.Text = "Update!";
this.updateToolStripMenuItem.Visible = false;
this.updateToolStripMenuItem.Click += new System.EventHandler(this.updateToolStripMenuItem_Click);
@@ -646,9 +706,9 @@ namespace Notatnik
this.statusStrip1.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripStatusLabel1});
this.statusStrip1.Location = new System.Drawing.Point(0, 639);
this.statusStrip1.Location = new System.Drawing.Point(0, 439);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(1028, 22);
this.statusStrip1.Size = new System.Drawing.Size(784, 22);
this.statusStrip1.SizingGrip = false;
this.statusStrip1.TabIndex = 3;
this.statusStrip1.Text = "statusStrip1";
@@ -684,19 +744,95 @@ namespace Notatnik
this.printPreviewDialog1.Name = "printPreviewDialog1";
this.printPreviewDialog1.Visible = false;
//
// drukujToolStripMenuItem
//
this.drukujToolStripMenuItem.Name = "drukujToolStripMenuItem";
this.drukujToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P)));
this.drukujToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.drukujToolStripMenuItem.Text = "Drukuj";
this.drukujToolStripMenuItem.Click += new System.EventHandler(this.drukujToolStripMenuItem_Click);
//
// panel3
//
this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(48)))));
this.panel3.Controls.Add(this.button19);
this.panel3.Controls.Add(this.button13);
this.panel3.Controls.Add(this.button14);
this.panel3.Controls.Add(this.button15);
this.panel3.Controls.Add(this.button17);
this.panel3.Controls.Add(this.button16);
this.panel3.Controls.Add(this.button6);
this.panel3.Location = new System.Drawing.Point(44, 386);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(288, 36);
this.panel3.TabIndex = 4;
this.panel3.Visible = false;
//
// button18
//
this.button18.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button18.FlatAppearance.BorderSize = 0;
this.button18.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.button18.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.button18.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button18.Font = new System.Drawing.Font("Segoe MDL2 Assets", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button18.ForeColor = System.Drawing.Color.White;
this.button18.Location = new System.Drawing.Point(4, 386);
this.button18.Margin = new System.Windows.Forms.Padding(0);
this.button18.Name = "button18";
this.button18.Size = new System.Drawing.Size(36, 36);
this.button18.TabIndex = 20;
this.button18.Text = "";
this.button18.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.toolTip1.SetToolTip(this.button18, "Modyfikowanie czcionki");
this.button18.UseVisualStyleBackColor = true;
this.button18.Click += new System.EventHandler(this.button18_Click);
this.button18.MouseEnter += new System.EventHandler(this.button18_MouseEnter);
this.button18.MouseLeave += new System.EventHandler(this.button18_MouseLeave);
//
// button19
//
this.button19.FlatAppearance.BorderSize = 0;
this.button19.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.button19.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.button19.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button19.Font = new System.Drawing.Font("Segoe MDL2 Assets", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button19.ForeColor = System.Drawing.Color.White;
this.button19.Location = new System.Drawing.Point(252, 0);
this.button19.Margin = new System.Windows.Forms.Padding(0);
this.button19.Name = "button19";
this.button19.Size = new System.Drawing.Size(36, 36);
this.button19.TabIndex = 20;
this.button19.Text = "";
this.button19.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.toolTip1.SetToolTip(this.button19, "Informacje o programie");
this.button19.UseVisualStyleBackColor = true;
this.button19.Click += new System.EventHandler(this.button19_Click);
this.button19.MouseEnter += new System.EventHandler(this.button19_MouseEnter);
this.button19.MouseLeave += new System.EventHandler(this.button19_MouseLeave);
//
// zawijanieWierszyToolStripMenuItem
//
this.zawijanieWierszyToolStripMenuItem.Name = "zawijanieWierszyToolStripMenuItem";
this.zawijanieWierszyToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
this.zawijanieWierszyToolStripMenuItem.Text = "Zawijanie wierszy";
this.zawijanieWierszyToolStripMenuItem.Click += new System.EventHandler(this.zawijanieWierszyToolStripMenuItem_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
this.ClientSize = new System.Drawing.Size(1028, 661);
this.ClientSize = new System.Drawing.Size(784, 461);
this.Controls.Add(this.panel3);
this.Controls.Add(this.richTextBox1);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Controls.Add(this.statusStrip1);
this.ForeColor = System.Drawing.Color.White;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(1044, 700);
this.MinimumSize = new System.Drawing.Size(800, 500);
this.Name = "Form1";
this.Text = "Bez tytułu - Notatnik";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
@@ -706,6 +842,7 @@ namespace Notatnik
this.contextMenuStrip1.ResumeLayout(false);
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
this.panel3.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
@@ -760,6 +897,17 @@ namespace Notatnik
private System.Windows.Forms.Button button17;
private System.Windows.Forms.ToolStripSeparator updateSeparator;
private System.Windows.Forms.ToolStripMenuItem updateToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem informacjeOProgramieToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem nowyDokumentToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem zapiszToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem zapiszJakoToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem otwórzToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripMenuItem drukujToolStripMenuItem;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button button18;
private System.Windows.Forms.Button button19;
private System.Windows.Forms.ToolStripMenuItem zawijanieWierszyToolStripMenuItem;
}
}
+92 -22
View File
@@ -20,15 +20,15 @@ namespace Notatnik
private string[] lines;
private int printedLines;
public Form1()
{
InitializeComponent();
}
public Form1() { InitializeComponent(); }
private void Form1_Load(object sender, EventArgs e)
{
richTextBox1.Font = Properties.Settings.Default.Czcionka;
richTextBox1.BackColor = Properties.Settings.Default.Tlo;
richTextBox1.ForeColor = Properties.Settings.Default.KolorCzcionki;
richTextBox1.WordWrap = Properties.Settings.Default.ZawijanieWierszy;
zawijanieWierszyToolStripMenuItem.Checked = Properties.Settings.Default.ZawijanieWierszy;
this.Size = Properties.Settings.Default.FormSize;
wytnijToolStripMenuItem.Enabled = false;
kopiujToolStripMenuItem.Enabled = false;
@@ -73,6 +73,16 @@ namespace Notatnik
private void button13_MouseLeave(object sender, EventArgs e) { button13.ForeColor = Color.White; }
private void button14_MouseEnter(object sender, EventArgs e) { button14.ForeColor = Color.FromArgb(40, 167, 69); }
private void button14_MouseLeave(object sender, EventArgs e) { button14.ForeColor = Color.White; }
private void button15_MouseEnter(object sender, EventArgs e) { button15.ForeColor = Color.FromArgb(40, 167, 69); }
private void button15_MouseLeave(object sender, EventArgs e) { button15.ForeColor = Color.White; }
private void button16_MouseEnter(object sender, EventArgs e) { button16.ForeColor = Color.FromArgb(40, 167, 69); }
private void button16_MouseLeave(object sender, EventArgs e) { button16.ForeColor = Color.White; }
private void button17_MouseEnter(object sender, EventArgs e) { button17.ForeColor = Color.FromArgb(40, 167, 69); }
private void button17_MouseLeave(object sender, EventArgs e) { button17.ForeColor = Color.White; }
private void button18_MouseEnter(object sender, EventArgs e) { button18.ForeColor = Color.FromArgb(40, 167, 69); }
private void button18_MouseLeave(object sender, EventArgs e) { button18.ForeColor = Color.White; }
private void button19_MouseEnter(object sender, EventArgs e) { button19.ForeColor = Color.FromArgb(40, 167, 69); }
private void button19_MouseLeave(object sender, EventArgs e) { button19.ForeColor = Color.White; }
#endregion
#region Drukowanie
private void printIt(object sender, EventArgs e)
@@ -230,7 +240,11 @@ namespace Notatnik
if(colorDialog1.ShowDialog() == DialogResult.OK)
{
if (richTextBox1.SelectedText.Length == 0 | richTextBox1.SelectedText.Length == richTextBox1.Text.Length)
{
richTextBox1.ForeColor = colorDialog1.Color;
Properties.Settings.Default.KolorCzcionki = colorDialog1.Color;
Properties.Settings.Default.Save();
}
else
richTextBox1.SelectionColor = colorDialog1.Color;
}
@@ -327,11 +341,24 @@ namespace Notatnik
private void button10_Click(object sender, EventArgs e) { pasteText(); }
private void button11_Click(object sender, EventArgs e) { undoChanges(); }
private void button12_Click(object sender, EventArgs e) { redoChanges(); }
private void button13_Click(object sender, EventArgs e) { changeFontColor(); }
private void button14_Click(object sender, EventArgs e) { changeBackgroundColor(); }
private void button15_Click(object sender, EventArgs e) { underlineText(); }
private void button16_Click(object sender, EventArgs e) { italicText(); }
private void button17_Click(object sender, EventArgs e) { boldText(); }
private void button13_Click(object sender, EventArgs e) { changeFontColor(); panel3.Visible = false; }
private void button14_Click(object sender, EventArgs e) { changeBackgroundColor(); panel3.Visible = false; }
private void button15_Click(object sender, EventArgs e) { underlineText(); panel3.Visible = false; }
private void button16_Click(object sender, EventArgs e) { italicText(); panel3.Visible = false; }
private void button17_Click(object sender, EventArgs e) { boldText(); panel3.Visible = false; }
private void button18_Click(object sender, EventArgs e)
{
if (!panel3.Visible)
panel3.Visible = true;
else
panel3.Visible = false;
}
private void button19_Click(object sender, EventArgs e)
{
Info info = new Info();
info.Show();
panel3.Visible = false;
}
#endregion
#region Skrypty ToolStripa
private void kopiujToolStripMenuItem_Click(object sender, EventArgs e) { copySelected(); }
@@ -344,6 +371,54 @@ namespace Notatnik
private void pogrubienieToolStripMenuItem_Click(object sender, EventArgs e) { boldText(); }
private void kursywaToolStripMenuItem_Click(object sender, EventArgs e) { italicText(); }
private void podkreślenieToolStripMenuItem_Click(object sender, EventArgs e) { underlineText(); }
private void informacjeOProgramieToolStripMenuItem_Click(object sender, EventArgs e)
{
Info info = new Info();
info.Show();
}
private void nowyDokumentToolStripMenuItem_Click(object sender, EventArgs e) { newFile(); }
private void zapiszToolStripMenuItem_Click(object sender, EventArgs e)
{
if (filePath == Path.GetTempPath() + "null.txt")
saveAsFile();
else
saveFile();
}
private void zapiszJakoToolStripMenuItem_Click(object sender, EventArgs e) { saveAsFile(); }
private void otwórzToolStripMenuItem_Click(object sender, EventArgs e) { openFile(false); }
private void drukujToolStripMenuItem_Click(object sender, EventArgs e) { printPreviewDialog1.ShowDialog(); }
private void updateToolStripMenuItem_Click(object sender, EventArgs e)
{
if (File.Exists(Application.StartupPath + "\\updater.exe"))
{
Process.Start("updater.exe");
this.Close();
}
else
{
if (MessageBox.Show("Nie posiadasz programu do aktualizacji Notatnika. Być może dlatego, że jest to wersja Portable lub plik \"updater.exe\" został usunięty.", "Nie ma pliku updater.exe!", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
{
Process.Start("https://github.com/KrzysiekSiemv/Notepad/releases");
}
}
}
private void zawijanieWierszyToolStripMenuItem_Click(object sender, EventArgs e)
{
if (!richTextBox1.WordWrap)
{
richTextBox1.WordWrap = true;
Properties.Settings.Default.ZawijanieWierszy = true;
Properties.Settings.Default.Save();
zawijanieWierszyToolStripMenuItem.Checked = true;
}
else
{
richTextBox1.WordWrap = false;
Properties.Settings.Default.ZawijanieWierszy = false;
Properties.Settings.Default.Save();
zawijanieWierszyToolStripMenuItem.Checked = false;
}
}
#endregion
private void Form1_SizeChanged(object sender, EventArgs e)
@@ -373,12 +448,15 @@ namespace Notatnik
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if (MessageBox.Show("Czy chcesz zapisać plik?", "Notatnik", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
if(richTextBox1.Text != "")
{
if (filePath == Path.GetTempPath() + "null.txt")
saveAsFile();
else
saveFile();
if (MessageBox.Show("Czy chcesz zapisać plik?", "Notatnik", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
{
if (filePath == Path.GetTempPath() + "null.txt")
saveAsFile();
else
saveFile();
}
}
}
@@ -396,16 +474,8 @@ namespace Notatnik
{
toolStripStatusLabel1.Text = "Jest dostępna nowa wersja! Jeżeli chcesz zainstalować, wybierz w Context Menu: Pobierz update!";
statusStrip1.BackColor = Color.FromArgb(255, 202, 81, 0);
updateSeparator.Visible = true;
updateToolStripMenuItem.Visible = true;
}
}
private void updateToolStripMenuItem_Click(object sender, EventArgs e)
{
Process.Start("updater.exe");
this.Close();
}
}
}
+12
View File
@@ -120,6 +120,15 @@
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>1285, 17</value>
</metadata>
@@ -327,6 +336,9 @@
<metadata name="colorDialog2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>1164, 17</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAYAEBAAAAEAIABoBAAAZgAAAAAAAAABACAAZxoAAM4EAAAwMAAAAQAgAKglAAA1HwAAICAAAAEA
+136
View File
@@ -0,0 +1,136 @@
namespace Notatnik
{
partial class Info
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Info));
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.label4 = new System.Windows.Forms.Label();
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
this.SuspendLayout();
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label1.Location = new System.Drawing.Point(0, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(284, 30);
this.label1.TabIndex = 0;
this.label1.Text = "Notatnik";
this.label1.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
//
// label2
//
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label2.Location = new System.Drawing.Point(12, 30);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(70, 20);
this.label2.TabIndex = 1;
this.label2.Text = "Twórca:";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label3
//
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label3.Location = new System.Drawing.Point(12, 50);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(70, 20);
this.label3.TabIndex = 2;
this.label3.Text = "Wersja:";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// linkLabel1
//
this.linkLabel1.AutoSize = true;
this.linkLabel1.Location = new System.Drawing.Point(88, 34);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(166, 13);
this.linkLabel1.TabIndex = 3;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "Krzysztof \"KrzysiekSiemv\" Smaga";
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(88, 54);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(35, 13);
this.label4.TabIndex = 4;
this.label4.Text = "label4";
//
// linkLabel2
//
this.linkLabel2.AutoSize = true;
this.linkLabel2.Location = new System.Drawing.Point(181, 64);
this.linkLabel2.Name = "linkLabel2";
this.linkLabel2.Size = new System.Drawing.Size(91, 13);
this.linkLabel2.TabIndex = 5;
this.linkLabel2.TabStop = true;
this.linkLabel2.Text = "Wpłać darowiznę";
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
//
// Info
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(284, 86);
this.Controls.Add(this.linkLabel2);
this.Controls.Add(this.label4);
this.Controls.Add(this.linkLabel1);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(300, 125);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(300, 125);
this.Name = "Info";
this.Text = "Informacje o programie";
this.Load += new System.EventHandler(this.Info_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.LinkLabel linkLabel1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.LinkLabel linkLabel2;
}
}
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Notatnik
{
public partial class Info : Form
{
public Info() { InitializeComponent(); }
private void Info_Load(object sender, EventArgs e) { label4.Text = Application.ProductVersion; }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { System.Diagnostics.Process.Start("https://github.com/KrzysiekSiemv"); }
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { System.Diagnostics.Process.Start("https://paypal.me/KrzysztofSmaga"); }
}
}
File diff suppressed because it is too large Load Diff
+9
View File
@@ -82,6 +82,12 @@
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Info.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Info.Designer.cs">
<DependentUpon>Info.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Update.cs">
@@ -93,6 +99,9 @@
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Info.resx">
<DependentUpon>Info.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// Możesz określić wszystkie wartości lub użyć domyślnych numerów kompilacji i poprawki
// przy użyciu symbolu „*”, tak jak pokazano poniżej:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyVersion("1.0.3.3")]
[assembly: AssemblyFileVersion("1.0.3.3")]
+24
View File
@@ -70,5 +70,29 @@ namespace Notatnik.Properties {
this["FirstRun"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Black")]
public global::System.Drawing.Color KolorCzcionki {
get {
return ((global::System.Drawing.Color)(this["KolorCzcionki"]));
}
set {
this["KolorCzcionki"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool ZawijanieWierszy {
get {
return ((bool)(this["ZawijanieWierszy"]));
}
set {
this["ZawijanieWierszy"] = value;
}
}
}
}
@@ -14,5 +14,11 @@
<Setting Name="FirstRun" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="KolorCzcionki" Type="System.Drawing.Color" Scope="User">
<Value Profile="(Default)">Black</Value>
</Setting>
<Setting Name="ZawijanieWierszy" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
</SettingsFile>
Binary file not shown.
@@ -23,6 +23,12 @@
<setting name="FirstRun" serializeAs="String">
<value>True</value>
</setting>
<setting name="KolorCzcionki" serializeAs="String">
<value>Black</value>
</setting>
<setting name="ZawijanieWierszy" serializeAs="String">
<value>False</value>
</setting>
</Notatnik.Properties.Settings>
<Notepad_v2.Properties.Settings>
<setting name="Czcionka" serializeAs="String">
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
75f58dc4ce47ae60a4b7e2aa90a185fab752a7be
df752835c6004492f28e25014c00264fb7368a30
@@ -19,3 +19,4 @@ C:\Users\Krzysiek\Documents\GitHub\Notepad\Notepad\Notepad v2\obj\Debug\Notepad
C:\Users\Krzysiek\Documents\GitHub\Notepad\Notepad\Notepad v2\obj\Debug\Notatnik.exe
C:\Users\Krzysiek\Documents\GitHub\Notepad\Notepad\Notepad v2\obj\Debug\Notatnik.pdb
C:\Users\Krzysiek\Documents\GitHub\Notepad\Notepad\Notepad v2\obj\Debug\Notatnik.Update.resources
C:\Users\Krzysiek\Documents\GitHub\Notepad\Notepad\Notepad v2\obj\Debug\Notatnik.Info.resources
Binary file not shown.
+15 -14
View File
@@ -29,6 +29,7 @@ namespace NotepadUpdater
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
@@ -41,7 +42,7 @@ namespace NotepadUpdater
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(13, 13);
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(81, 13);
this.label1.TabIndex = 0;
@@ -50,7 +51,7 @@ namespace NotepadUpdater
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(23, 35);
this.label2.Location = new System.Drawing.Point(149, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(71, 13);
this.label2.TabIndex = 1;
@@ -59,7 +60,7 @@ namespace NotepadUpdater
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(100, 13);
this.label3.Location = new System.Drawing.Point(99, 9);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(31, 13);
this.label3.TabIndex = 2;
@@ -68,7 +69,7 @@ namespace NotepadUpdater
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(100, 35);
this.label4.Location = new System.Drawing.Point(226, 9);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(31, 13);
this.label4.TabIndex = 3;
@@ -76,8 +77,10 @@ namespace NotepadUpdater
//
// richTextBox1
//
this.richTextBox1.BackColor = System.Drawing.Color.White;
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.richTextBox1.Location = new System.Drawing.Point(12, 61);
this.richTextBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.richTextBox1.Location = new System.Drawing.Point(15, 25);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.ReadOnly = true;
this.richTextBox1.Size = new System.Drawing.Size(417, 157);
@@ -86,7 +89,7 @@ namespace NotepadUpdater
//
// button1
//
this.button1.Location = new System.Drawing.Point(330, 19);
this.button1.Location = new System.Drawing.Point(330, 188);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(99, 23);
this.button1.TabIndex = 6;
@@ -96,16 +99,16 @@ namespace NotepadUpdater
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(12, 224);
this.progressBar1.Location = new System.Drawing.Point(12, 188);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(417, 23);
this.progressBar1.Size = new System.Drawing.Size(312, 23);
this.progressBar1.TabIndex = 7;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(441, 259);
this.ClientSize = new System.Drawing.Size(441, 224);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.button1);
this.Controls.Add(this.richTextBox1);
@@ -113,14 +116,12 @@ namespace NotepadUpdater
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(457, 298);
this.MaximumSize = new System.Drawing.Size(457, 263);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(457, 298);
this.MinimumSize = new System.Drawing.Size(457, 263);
this.Name = "Form1";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Update notatnika";
this.Load += new System.EventHandler(this.Form1_Load);
+12 -5
View File
@@ -25,9 +25,10 @@ namespace NotepadUpdater
private void Form1_Load(object sender, EventArgs e)
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
string urlVersion = "https://raw.githubusercontent.com/KrzysiekSiemv/Notepad/main/version.txt";
string urlChangelog = "https://raw.githubusercontent.com/KrzysiekSiemv/Notepad/main/changelog.txt";
string urlVersion = "https://raw.githubusercontent.com/KrzysiekSiemv/Notepad/main/update/version";
string urlChangelog = "https://raw.githubusercontent.com/KrzysiekSiemv/Notepad/main/update/changelog";
webClient = new WebClient();
@@ -42,6 +43,12 @@ namespace NotepadUpdater
FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo("Notatnik.exe");
if (fileVersionInfo.ProductVersion == contentVersion)
{
MessageBox.Show("Program nie wymaga aktualizacji, gdyż posiada najnowszą wersję oprogramowania", "Update niewymagany", MessageBoxButtons.OK, MessageBoxIcon.Information);
Application.Exit();
}
label3.Text = fileVersionInfo.ProductVersion;
label4.Text = contentVersion;
@@ -50,17 +57,17 @@ namespace NotepadUpdater
void downloadUpdate()
{
string urlDownload = "https://raw.githubusercontent.com/KrzysiekSiemv/Notepad/main/changelog.txt";
string urlDownload = "https://raw.githubusercontent.com/KrzysiekSiemv/Notepad/main/update/download";
Stream streamDownload = webClient.OpenRead(urlDownload);
StreamReader readerDownload = new StreamReader(streamDownload);
string contentDownload = readerDownload.ReadToEnd();
string download = readerDownload.ReadToEnd();
File.Delete("Notatnik.exe");
webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged);
webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted);
webClient.DownloadFileAsync(new Uri(contentDownload), "Notatnik.exe");
webClient.DownloadFileAsync(new Uri(download), "Notatnik.exe");
}
void client_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
File diff suppressed because it is too large Load Diff
@@ -31,6 +31,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
@@ -65,6 +68,7 @@
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="app.manifest" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- Opcje manifestu Kontroli konta użytkownika
Jeśli chcesz zmienić poziom Kontroli konta użytkownika systemu Windows, zastąp
węzeł requestedExecutionLevel jednym z następujących.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Określenie elementu requestedExecutionLevel spowoduje wyłączenie wirtualizacji plików i rejestru.
Usuń ten element, jeśli aplikacja wymaga wirtualizacji w celu zachowania
zgodności z poprzednimi wersjami.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
-->
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Lista wersji systemu Windows, na których ta aplikacja została przetestowana
i dla których została zaprojektowana. Odkomentuj odpowiednie elementy, a system Windows
automatycznie wybierze najbardziej zgodne środowisko. -->
<!-- Windows Vista -->
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
<!-- Windows 7 -->
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
<!-- Windows 8 -->
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
<!-- Windows 8.1 -->
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
<!-- Windows 10 -->
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
</application>
</compatibility>
<!-- Wskazuje, że aplikacja rozpoznaje wartości DPI i nie będzie automatycznie skalowana przez system Windows przy dużych
wartościach DPI. Aplikacje korzystające z technologii Windows Presentation Foundation (WPF) automatycznie rozpoznają wartości DPI i nie potrzebują
tej opcji. Aplikacje korzystające z technologii Windows Forms przeznaczone dla platformy .NET Framework 4.6, które korzystają z tej opcji, powinny
ustawić także wartość „true” dla parametru „EnableWindowsFormsHighDpiAutoResizing” w pliku app.config. -->
<!--
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
-->
<!-- Włącz motywy dla typowych formantów systemu Windows i okien dialogowych (system Windows XP i nowsze) -->
<!--
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
-->
</assembly>
Binary file not shown.
@@ -8,3 +8,13 @@ C:\Users\Krzysiek\source\repos\NotepadUpdater\NotepadUpdater\obj\Debug\NotepadUp
C:\Users\Krzysiek\source\repos\NotepadUpdater\NotepadUpdater\obj\Debug\NotepadUpdater.exe
C:\Users\Krzysiek\source\repos\NotepadUpdater\NotepadUpdater\obj\Debug\NotepadUpdater.pdb
C:\Users\Krzysiek\source\repos\NotepadUpdater\NotepadUpdater\obj\Debug\NotepadUpdater.Form1.resources
C:\Users\Krzysiek\Documents\GitHub\Notepad\NotepadUpdater\NotepadUpdater\bin\Debug\NotepadUpdater.exe.config
C:\Users\Krzysiek\Documents\GitHub\Notepad\NotepadUpdater\NotepadUpdater\bin\Debug\NotepadUpdater.exe
C:\Users\Krzysiek\Documents\GitHub\Notepad\NotepadUpdater\NotepadUpdater\bin\Debug\NotepadUpdater.pdb
C:\Users\Krzysiek\Documents\GitHub\Notepad\NotepadUpdater\NotepadUpdater\obj\Debug\NotepadUpdater.csprojAssemblyReference.cache
C:\Users\Krzysiek\Documents\GitHub\Notepad\NotepadUpdater\NotepadUpdater\obj\Debug\NotepadUpdater.Form1.resources
C:\Users\Krzysiek\Documents\GitHub\Notepad\NotepadUpdater\NotepadUpdater\obj\Debug\NotepadUpdater.Properties.Resources.resources
C:\Users\Krzysiek\Documents\GitHub\Notepad\NotepadUpdater\NotepadUpdater\obj\Debug\NotepadUpdater.csproj.GenerateResource.cache
C:\Users\Krzysiek\Documents\GitHub\Notepad\NotepadUpdater\NotepadUpdater\obj\Debug\NotepadUpdater.csproj.CoreCompileInputs.cache
C:\Users\Krzysiek\Documents\GitHub\Notepad\NotepadUpdater\NotepadUpdater\obj\Debug\NotepadUpdater.exe
C:\Users\Krzysiek\Documents\GitHub\Notepad\NotepadUpdater\NotepadUpdater\obj\Debug\NotepadUpdater.pdb
+1
View File
@@ -1,4 +1,5 @@
# Notepad
![GitHub all releases](https://img.shields.io/github/downloads/KrzysiekSiemv/Notepad/total)<br>
Notatnik mojej edycji. Nic więcej.
Do uruchomienia wymagane jest:<br>
+18 -4
View File
@@ -1,4 +1,18 @@
== 1.0.2.0 == 20.01.2021 =====================
= Naprawia błąd usuwający zawartość plików
= Wprowadzono możliwość aktualizacji notatnika
==============================================
== 1.0.3.3 == 26.01.2021 =====================
Dodano możliwość włączania i wyłączania
zawijania wierszy
Działające skróty klawiszowe zapisu,
wydruku, itd.
Zaktualizowany Updater
Małe poprawki
=========================================
== 1.0.3.1 == 26.01.2021 ====================
Usuwa pojawiający się błąd na początku z
powodu ustawień głównego koloru czcionki
========================================
== 1.0.3.0 == 25.01.2021 ====================
Zapamiętuje główny kolor czcionki
Jest informacja na temat wersji programu
========================================
+1 -1
View File
@@ -1 +1 @@
https://github.com/KrzysiekSiemv/Notepad/releases/download/1.0.2.0/NotatnikPortable.exe
https://github.com/KrzysiekSiemv/Notepad/releases/download/1.0.3.3/NotatnikPortable.exe
+1 -1
View File
@@ -1 +1 @@
1.0.2.0
1.0.3.3