Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd3a4df75a | ||
|
|
d51bd429f6 | ||
|
|
6dd8d50aa0 | ||
|
|
dafe8b4e3c | ||
|
|
a86e35d42c | ||
|
|
cbe95246d3 |
Binary file not shown.
@@ -1,6 +1,24 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||||
|
<section name="ErrorGenerator.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||||
|
</sectionGroup>
|
||||||
|
</configSections>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
|
||||||
</startup>
|
</startup>
|
||||||
|
<userSettings>
|
||||||
|
<ErrorGenerator.Properties.Settings>
|
||||||
|
<setting name="Ikona" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="TytulIkony" serializeAs="String">
|
||||||
|
<value>Pokaż sztuczny błąd</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Klikniecie" serializeAs="String">
|
||||||
|
<value>0</value>
|
||||||
|
</setting>
|
||||||
|
</ErrorGenerator.Properties.Settings>
|
||||||
|
</userSettings>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
@@ -78,6 +78,12 @@
|
|||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="UstawieniaNotify.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="UstawieniaNotify.Designer.cs">
|
||||||
|
<DependentUpon>UstawieniaNotify.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<EmbeddedResource Include="Form1.resx">
|
<EmbeddedResource Include="Form1.resx">
|
||||||
<DependentUpon>Form1.cs</DependentUpon>
|
<DependentUpon>Form1.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
@@ -91,6 +97,9 @@
|
|||||||
<DependentUpon>Resources.resx</DependentUpon>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<EmbeddedResource Include="UstawieniaNotify.resx">
|
||||||
|
<DependentUpon>UstawieniaNotify.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<None Include="Properties\Settings.settings">
|
<None Include="Properties\Settings.settings">
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
|
|||||||
Generated
+251
-8
@@ -29,6 +29,7 @@ namespace ErrorGenerator
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
this.title = new System.Windows.Forms.TextBox();
|
this.title = new System.Windows.Forms.TextBox();
|
||||||
@@ -41,6 +42,29 @@ namespace ErrorGenerator
|
|||||||
this.generate = new System.Windows.Forms.Button();
|
this.generate = new System.Windows.Forms.Button();
|
||||||
this.label6 = new System.Windows.Forms.Label();
|
this.label6 = new System.Windows.Forms.Label();
|
||||||
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||||
|
this.label5 = new System.Windows.Forms.Label();
|
||||||
|
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
||||||
|
this.label7 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
|
||||||
|
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
|
this.ustawieniaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
|
this.wyłaczToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.button1 = new System.Windows.Forms.Button();
|
||||||
|
this.button2 = new System.Windows.Forms.Button();
|
||||||
|
this.label8 = new System.Windows.Forms.Label();
|
||||||
|
this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
|
||||||
|
this.numericUpDown3 = new System.Windows.Forms.NumericUpDown();
|
||||||
|
this.label9 = new System.Windows.Forms.Label();
|
||||||
|
this.label10 = new System.Windows.Forms.Label();
|
||||||
|
this.label11 = new System.Windows.Forms.Label();
|
||||||
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||||
|
this.checkBox2 = new System.Windows.Forms.CheckBox();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
|
||||||
|
this.contextMenuStrip1.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// label1
|
// label1
|
||||||
@@ -75,7 +99,7 @@ namespace ErrorGenerator
|
|||||||
this.text.Multiline = true;
|
this.text.Multiline = true;
|
||||||
this.text.Name = "text";
|
this.text.Name = "text";
|
||||||
this.text.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
this.text.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
||||||
this.text.Size = new System.Drawing.Size(253, 176);
|
this.text.Size = new System.Drawing.Size(253, 135);
|
||||||
this.text.TabIndex = 3;
|
this.text.TabIndex = 3;
|
||||||
this.text.Text = "Jestem programem do tworzenia sztucznych błędów systemowych :) ";
|
this.text.Text = "Jestem programem do tworzenia sztucznych błędów systemowych :) ";
|
||||||
//
|
//
|
||||||
@@ -129,9 +153,9 @@ namespace ErrorGenerator
|
|||||||
//
|
//
|
||||||
// generate
|
// generate
|
||||||
//
|
//
|
||||||
this.generate.Location = new System.Drawing.Point(271, 221);
|
this.generate.Location = new System.Drawing.Point(344, 237);
|
||||||
this.generate.Name = "generate";
|
this.generate.Name = "generate";
|
||||||
this.generate.Size = new System.Drawing.Size(140, 23);
|
this.generate.Size = new System.Drawing.Size(68, 25);
|
||||||
this.generate.TabIndex = 10;
|
this.generate.TabIndex = 10;
|
||||||
this.generate.Text = "Generuj";
|
this.generate.Text = "Generuj";
|
||||||
this.generate.UseVisualStyleBackColor = true;
|
this.generate.UseVisualStyleBackColor = true;
|
||||||
@@ -140,7 +164,7 @@ namespace ErrorGenerator
|
|||||||
// label6
|
// label6
|
||||||
//
|
//
|
||||||
this.label6.AutoSize = true;
|
this.label6.AutoSize = true;
|
||||||
this.label6.Location = new System.Drawing.Point(12, 251);
|
this.label6.Location = new System.Drawing.Point(12, 284);
|
||||||
this.label6.Name = "label6";
|
this.label6.Name = "label6";
|
||||||
this.label6.Size = new System.Drawing.Size(156, 13);
|
this.label6.Size = new System.Drawing.Size(156, 13);
|
||||||
this.label6.TabIndex = 11;
|
this.label6.TabIndex = 11;
|
||||||
@@ -149,7 +173,7 @@ namespace ErrorGenerator
|
|||||||
// linkLabel1
|
// linkLabel1
|
||||||
//
|
//
|
||||||
this.linkLabel1.AutoSize = true;
|
this.linkLabel1.AutoSize = true;
|
||||||
this.linkLabel1.Location = new System.Drawing.Point(175, 251);
|
this.linkLabel1.Location = new System.Drawing.Point(174, 284);
|
||||||
this.linkLabel1.Name = "linkLabel1";
|
this.linkLabel1.Name = "linkLabel1";
|
||||||
this.linkLabel1.Size = new System.Drawing.Size(40, 13);
|
this.linkLabel1.Size = new System.Drawing.Size(40, 13);
|
||||||
this.linkLabel1.TabIndex = 12;
|
this.linkLabel1.TabIndex = 12;
|
||||||
@@ -157,11 +181,208 @@ namespace ErrorGenerator
|
|||||||
this.linkLabel1.Text = "GitHub";
|
this.linkLabel1.Text = "GitHub";
|
||||||
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkClicked);
|
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkClicked);
|
||||||
//
|
//
|
||||||
|
// label5
|
||||||
|
//
|
||||||
|
this.label5.AutoSize = true;
|
||||||
|
this.label5.Location = new System.Drawing.Point(271, 131);
|
||||||
|
this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label5.Name = "label5";
|
||||||
|
this.label5.Size = new System.Drawing.Size(106, 13);
|
||||||
|
this.label5.TabIndex = 13;
|
||||||
|
this.label5.Text = "Opóżnienie startowe:";
|
||||||
|
//
|
||||||
|
// numericUpDown1
|
||||||
|
//
|
||||||
|
this.numericUpDown1.Location = new System.Drawing.Point(274, 146);
|
||||||
|
this.numericUpDown1.Margin = new System.Windows.Forms.Padding(2);
|
||||||
|
this.numericUpDown1.Maximum = new decimal(new int[] {
|
||||||
|
100000,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
|
this.numericUpDown1.Name = "numericUpDown1";
|
||||||
|
this.numericUpDown1.Size = new System.Drawing.Size(118, 20);
|
||||||
|
this.numericUpDown1.TabIndex = 14;
|
||||||
|
//
|
||||||
|
// label7
|
||||||
|
//
|
||||||
|
this.label7.AutoSize = true;
|
||||||
|
this.label7.Location = new System.Drawing.Point(9, 206);
|
||||||
|
this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label7.Name = "label7";
|
||||||
|
this.label7.Size = new System.Drawing.Size(28, 13);
|
||||||
|
this.label7.TabIndex = 15;
|
||||||
|
this.label7.Text = "Inne";
|
||||||
|
//
|
||||||
|
// checkBox1
|
||||||
|
//
|
||||||
|
this.checkBox1.AutoSize = true;
|
||||||
|
this.checkBox1.Location = new System.Drawing.Point(11, 221);
|
||||||
|
this.checkBox1.Margin = new System.Windows.Forms.Padding(2);
|
||||||
|
this.checkBox1.Name = "checkBox1";
|
||||||
|
this.checkBox1.Size = new System.Drawing.Size(245, 30);
|
||||||
|
this.checkBox1.TabIndex = 16;
|
||||||
|
this.checkBox1.Text = "Pokaż błąd po wciśnięciu przycisku na pasku \r\npowiadomień.";
|
||||||
|
this.checkBox1.UseVisualStyleBackColor = true;
|
||||||
|
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
|
||||||
|
//
|
||||||
|
// notifyIcon1
|
||||||
|
//
|
||||||
|
this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
|
||||||
|
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
|
||||||
|
this.notifyIcon1.Text = "Pokaż błąd";
|
||||||
|
this.notifyIcon1.Click += new System.EventHandler(this.notifyIcon1_Click);
|
||||||
|
this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
|
||||||
|
//
|
||||||
|
// contextMenuStrip1
|
||||||
|
//
|
||||||
|
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
|
this.ustawieniaToolStripMenuItem,
|
||||||
|
this.toolStripSeparator1,
|
||||||
|
this.wyłaczToolStripMenuItem});
|
||||||
|
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||||
|
this.contextMenuStrip1.Size = new System.Drawing.Size(132, 54);
|
||||||
|
//
|
||||||
|
// ustawieniaToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.ustawieniaToolStripMenuItem.Name = "ustawieniaToolStripMenuItem";
|
||||||
|
this.ustawieniaToolStripMenuItem.Size = new System.Drawing.Size(131, 22);
|
||||||
|
this.ustawieniaToolStripMenuItem.Text = "Ustawienia";
|
||||||
|
this.ustawieniaToolStripMenuItem.Click += new System.EventHandler(this.ustawieniaToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
|
// toolStripSeparator1
|
||||||
|
//
|
||||||
|
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||||
|
this.toolStripSeparator1.Size = new System.Drawing.Size(128, 6);
|
||||||
|
//
|
||||||
|
// wyłaczToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.wyłaczToolStripMenuItem.Name = "wyłaczToolStripMenuItem";
|
||||||
|
this.wyłaczToolStripMenuItem.Size = new System.Drawing.Size(131, 22);
|
||||||
|
this.wyłaczToolStripMenuItem.Text = "Zamknij";
|
||||||
|
this.wyłaczToolStripMenuItem.Click += new System.EventHandler(this.wyłaczToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
|
// button1
|
||||||
|
//
|
||||||
|
this.button1.Location = new System.Drawing.Point(274, 207);
|
||||||
|
this.button1.Margin = new System.Windows.Forms.Padding(2);
|
||||||
|
this.button1.Name = "button1";
|
||||||
|
this.button1.Size = new System.Drawing.Size(138, 25);
|
||||||
|
this.button1.TabIndex = 17;
|
||||||
|
this.button1.Text = "Ustawienia Notify";
|
||||||
|
this.button1.UseVisualStyleBackColor = true;
|
||||||
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||||
|
//
|
||||||
|
// button2
|
||||||
|
//
|
||||||
|
this.button2.Location = new System.Drawing.Point(274, 237);
|
||||||
|
this.button2.Name = "button2";
|
||||||
|
this.button2.Size = new System.Drawing.Size(68, 25);
|
||||||
|
this.button2.TabIndex = 18;
|
||||||
|
this.button2.Text = "Minimalizuj";
|
||||||
|
this.button2.UseVisualStyleBackColor = true;
|
||||||
|
this.button2.Click += new System.EventHandler(this.button2_Click);
|
||||||
|
//
|
||||||
|
// label8
|
||||||
|
//
|
||||||
|
this.label8.AutoSize = true;
|
||||||
|
this.label8.Location = new System.Drawing.Point(271, 92);
|
||||||
|
this.label8.Name = "label8";
|
||||||
|
this.label8.Size = new System.Drawing.Size(65, 13);
|
||||||
|
this.label8.TabIndex = 20;
|
||||||
|
this.label8.Text = "Pokaż kilka:";
|
||||||
|
//
|
||||||
|
// numericUpDown2
|
||||||
|
//
|
||||||
|
this.numericUpDown2.Location = new System.Drawing.Point(271, 108);
|
||||||
|
this.numericUpDown2.Minimum = new decimal(new int[] {
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
|
this.numericUpDown2.Name = "numericUpDown2";
|
||||||
|
this.numericUpDown2.Size = new System.Drawing.Size(138, 20);
|
||||||
|
this.numericUpDown2.TabIndex = 21;
|
||||||
|
this.numericUpDown2.Value = new decimal(new int[] {
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
|
//
|
||||||
|
// numericUpDown3
|
||||||
|
//
|
||||||
|
this.numericUpDown3.Location = new System.Drawing.Point(274, 183);
|
||||||
|
this.numericUpDown3.Margin = new System.Windows.Forms.Padding(2);
|
||||||
|
this.numericUpDown3.Maximum = new decimal(new int[] {
|
||||||
|
100000,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
|
this.numericUpDown3.Name = "numericUpDown3";
|
||||||
|
this.numericUpDown3.Size = new System.Drawing.Size(118, 20);
|
||||||
|
this.numericUpDown3.TabIndex = 23;
|
||||||
|
//
|
||||||
|
// label9
|
||||||
|
//
|
||||||
|
this.label9.AutoSize = true;
|
||||||
|
this.label9.Location = new System.Drawing.Point(271, 168);
|
||||||
|
this.label9.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label9.Name = "label9";
|
||||||
|
this.label9.Size = new System.Drawing.Size(139, 13);
|
||||||
|
this.label9.TabIndex = 22;
|
||||||
|
this.label9.Text = "Opóżnienie między błędami:";
|
||||||
|
//
|
||||||
|
// label10
|
||||||
|
//
|
||||||
|
this.label10.AutoSize = true;
|
||||||
|
this.label10.Location = new System.Drawing.Point(397, 185);
|
||||||
|
this.label10.Name = "label10";
|
||||||
|
this.label10.Size = new System.Drawing.Size(12, 13);
|
||||||
|
this.label10.TabIndex = 24;
|
||||||
|
this.label10.Text = "s";
|
||||||
|
//
|
||||||
|
// label11
|
||||||
|
//
|
||||||
|
this.label11.AutoSize = true;
|
||||||
|
this.label11.Location = new System.Drawing.Point(397, 148);
|
||||||
|
this.label11.Name = "label11";
|
||||||
|
this.label11.Size = new System.Drawing.Size(12, 13);
|
||||||
|
this.label11.TabIndex = 25;
|
||||||
|
this.label11.Text = "s";
|
||||||
|
//
|
||||||
|
// timer1
|
||||||
|
//
|
||||||
|
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
||||||
|
//
|
||||||
|
// checkBox2
|
||||||
|
//
|
||||||
|
this.checkBox2.AutoSize = true;
|
||||||
|
this.checkBox2.Location = new System.Drawing.Point(11, 257);
|
||||||
|
this.checkBox2.Name = "checkBox2";
|
||||||
|
this.checkBox2.Size = new System.Drawing.Size(181, 17);
|
||||||
|
this.checkBox2.TabIndex = 26;
|
||||||
|
this.checkBox2.Text = "Pokaż kilkadziesiąt jednocześnie";
|
||||||
|
this.checkBox2.UseVisualStyleBackColor = true;
|
||||||
|
this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
|
||||||
|
//
|
||||||
// Form1
|
// Form1
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(421, 274);
|
this.ClientSize = new System.Drawing.Size(421, 306);
|
||||||
|
this.Controls.Add(this.checkBox2);
|
||||||
|
this.Controls.Add(this.label11);
|
||||||
|
this.Controls.Add(this.label10);
|
||||||
|
this.Controls.Add(this.numericUpDown3);
|
||||||
|
this.Controls.Add(this.label9);
|
||||||
|
this.Controls.Add(this.numericUpDown2);
|
||||||
|
this.Controls.Add(this.label8);
|
||||||
|
this.Controls.Add(this.button2);
|
||||||
|
this.Controls.Add(this.button1);
|
||||||
|
this.Controls.Add(this.checkBox1);
|
||||||
|
this.Controls.Add(this.label7);
|
||||||
|
this.Controls.Add(this.numericUpDown1);
|
||||||
|
this.Controls.Add(this.label5);
|
||||||
this.Controls.Add(this.linkLabel1);
|
this.Controls.Add(this.linkLabel1);
|
||||||
this.Controls.Add(this.label6);
|
this.Controls.Add(this.label6);
|
||||||
this.Controls.Add(this.generate);
|
this.Controls.Add(this.generate);
|
||||||
@@ -176,12 +397,15 @@ namespace ErrorGenerator
|
|||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.MaximumSize = new System.Drawing.Size(437, 313);
|
|
||||||
this.MinimizeBox = false;
|
this.MinimizeBox = false;
|
||||||
this.MinimumSize = new System.Drawing.Size(437, 313);
|
this.MinimumSize = new System.Drawing.Size(437, 311);
|
||||||
this.Name = "Form1";
|
this.Name = "Form1";
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
this.Text = "ErGen - Generator błędów";
|
this.Text = "ErGen - Generator błędów";
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
|
||||||
|
this.contextMenuStrip1.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
@@ -200,6 +424,25 @@ namespace ErrorGenerator
|
|||||||
private System.Windows.Forms.Button generate;
|
private System.Windows.Forms.Button generate;
|
||||||
private System.Windows.Forms.Label label6;
|
private System.Windows.Forms.Label label6;
|
||||||
private System.Windows.Forms.LinkLabel linkLabel1;
|
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||||
|
private System.Windows.Forms.Label label5;
|
||||||
|
private System.Windows.Forms.NumericUpDown numericUpDown1;
|
||||||
|
private System.Windows.Forms.Label label7;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox1;
|
||||||
|
private System.Windows.Forms.NotifyIcon notifyIcon1;
|
||||||
|
private System.Windows.Forms.Button button1;
|
||||||
|
private System.Windows.Forms.Button button2;
|
||||||
|
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem ustawieniaToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem wyłaczToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.Label label8;
|
||||||
|
private System.Windows.Forms.NumericUpDown numericUpDown2;
|
||||||
|
private System.Windows.Forms.NumericUpDown numericUpDown3;
|
||||||
|
private System.Windows.Forms.Label label9;
|
||||||
|
private System.Windows.Forms.Label label10;
|
||||||
|
private System.Windows.Forms.Label label11;
|
||||||
|
private System.Windows.Forms.Timer timer1;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+88
-2
@@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Threading;
|
||||||
namespace ErrorGenerator
|
namespace ErrorGenerator
|
||||||
{
|
{
|
||||||
public partial class Form1 : Form
|
public partial class Form1 : Form
|
||||||
@@ -8,11 +9,24 @@ namespace ErrorGenerator
|
|||||||
public Form1()
|
public Form1()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
button2.Enabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void generate_Click(object sender, EventArgs e)
|
private void generate_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
showMessage(title.Text, text.Text, buttons.SelectedIndex, type.SelectedIndex);
|
if (checkBox2.Checked)
|
||||||
|
timer1.Start();
|
||||||
|
|
||||||
|
Thread.Sleep(Convert.ToInt32(numericUpDown1.Value * 1000));
|
||||||
|
Repeat(Convert.ToInt32(numericUpDown2.Value), () => showMessage(title.Text, text.Text, buttons.SelectedIndex, type.SelectedIndex));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Repeat(int times, Action action)
|
||||||
|
{
|
||||||
|
for(int i = 0; i < times; i++)
|
||||||
|
{
|
||||||
|
action();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void showMessage(string title, string text, int buttons, int types)
|
void showMessage(string title, string text, int buttons, int types)
|
||||||
@@ -49,6 +63,7 @@ namespace ErrorGenerator
|
|||||||
type = MessageBoxIcon.Information;
|
type = MessageBoxIcon.Information;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Thread.Sleep(Convert.ToInt32(numericUpDown3.Value * 1000));
|
||||||
MessageBox.Show(text, title, button, type);
|
MessageBox.Show(text, title, button, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,5 +72,76 @@ namespace ErrorGenerator
|
|||||||
linkLabel1.LinkVisited = true;
|
linkLabel1.LinkVisited = true;
|
||||||
System.Diagnostics.Process.Start("https://github.com/KrzysiekSiemv");
|
System.Diagnostics.Process.Start("https://github.com/KrzysiekSiemv");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void checkBox1_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Properties.Settings settings = new Properties.Settings();
|
||||||
|
if(settings.Ikona != "")
|
||||||
|
notifyIcon1.Icon = new Icon(settings.Ikona);
|
||||||
|
|
||||||
|
notifyIcon1.Text = settings.TytulIkony;
|
||||||
|
|
||||||
|
if (checkBox1.Checked)
|
||||||
|
{
|
||||||
|
notifyIcon1.Visible = true;
|
||||||
|
button2.Enabled = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
notifyIcon1.Visible = false;
|
||||||
|
button2.Enabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void notifyIcon1_DoubleClick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Properties.Settings.Default.Klikniecie == 1)
|
||||||
|
{
|
||||||
|
if (checkBox2.Checked)
|
||||||
|
timer1.Start();
|
||||||
|
|
||||||
|
Repeat(Convert.ToInt32(numericUpDown2.Value), () => showMessage(title.Text, text.Text, buttons.SelectedIndex, type.SelectedIndex));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void notifyIcon1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Properties.Settings.Default.Klikniecie == 0)
|
||||||
|
{
|
||||||
|
if (checkBox2.Checked)
|
||||||
|
timer1.Start();
|
||||||
|
|
||||||
|
Repeat(Convert.ToInt32(numericUpDown2.Value), () => showMessage(title.Text, text.Text, buttons.SelectedIndex, type.SelectedIndex));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void button1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
UstawieniaNotify ustawienia = new UstawieniaNotify();
|
||||||
|
ustawienia.Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void button2_Click(object sender, EventArgs e) { this.Visible = false; }
|
||||||
|
private void wyłaczToolStripMenuItem_Click(object sender, EventArgs e) { this.Close(); }
|
||||||
|
private void ustawieniaToolStripMenuItem_Click(object sender, EventArgs e) { this.Visible = true; }
|
||||||
|
|
||||||
|
private void timer1_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
showMessage(title.Text, text.Text, buttons.SelectedIndex, type.SelectedIndex);
|
||||||
|
timer1.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkBox2_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (checkBox2.Checked)
|
||||||
|
{
|
||||||
|
numericUpDown2.Value = 1;
|
||||||
|
numericUpDown2.Enabled = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
numericUpDown2.Enabled = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -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
|
// 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:
|
// przy użyciu symbolu „*”, tak jak pokazano poniżej:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.3.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.3.0")]
|
||||||
|
|||||||
+36
@@ -22,5 +22,41 @@ namespace ErrorGenerator.Properties {
|
|||||||
return defaultInstance;
|
return defaultInstance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||||
|
public string Ikona {
|
||||||
|
get {
|
||||||
|
return ((string)(this["Ikona"]));
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
this["Ikona"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.Configuration.DefaultSettingValueAttribute("Pokaż sztuczny błąd")]
|
||||||
|
public string TytulIkony {
|
||||||
|
get {
|
||||||
|
return ((string)(this["TytulIkony"]));
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
this["TytulIkony"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.Configuration.DefaultSettingValueAttribute("0")]
|
||||||
|
public int Klikniecie {
|
||||||
|
get {
|
||||||
|
return ((int)(this["Klikniecie"]));
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
this["Klikniecie"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,15 @@
|
|||||||
<?xml version='1.0' encoding='utf-8'?>
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="ErrorGenerator.Properties" GeneratedClassName="Settings">
|
||||||
<Profiles>
|
<Profiles />
|
||||||
<Profile Name="(Default)" />
|
<Settings>
|
||||||
</Profiles>
|
<Setting Name="Ikona" Type="System.String" Scope="User">
|
||||||
<Settings />
|
<Value Profile="(Default)" />
|
||||||
</SettingsFile>
|
</Setting>
|
||||||
|
<Setting Name="TytulIkony" Type="System.String" Scope="User">
|
||||||
|
<Value Profile="(Default)">Pokaż sztuczny błąd</Value>
|
||||||
|
</Setting>
|
||||||
|
<Setting Name="Klikniecie" Type="System.Int32" Scope="User">
|
||||||
|
<Value Profile="(Default)">0</Value>
|
||||||
|
</Setting>
|
||||||
|
</Settings>
|
||||||
|
</SettingsFile>
|
||||||
+185
@@ -0,0 +1,185 @@
|
|||||||
|
|
||||||
|
namespace ErrorGenerator
|
||||||
|
{
|
||||||
|
partial class UstawieniaNotify
|
||||||
|
{
|
||||||
|
/// <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(UstawieniaNotify));
|
||||||
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.button1 = new System.Windows.Forms.Button();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||||
|
this.button2 = new System.Windows.Forms.Button();
|
||||||
|
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.radioButton1 = new System.Windows.Forms.RadioButton();
|
||||||
|
this.radioButton2 = new System.Windows.Forms.RadioButton();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// textBox1
|
||||||
|
//
|
||||||
|
this.textBox1.Location = new System.Drawing.Point(9, 28);
|
||||||
|
this.textBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
||||||
|
this.textBox1.Name = "textBox1";
|
||||||
|
this.textBox1.Size = new System.Drawing.Size(194, 20);
|
||||||
|
this.textBox1.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Location = new System.Drawing.Point(9, 12);
|
||||||
|
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(37, 13);
|
||||||
|
this.label1.TabIndex = 1;
|
||||||
|
this.label1.Text = "Ikona:";
|
||||||
|
//
|
||||||
|
// button1
|
||||||
|
//
|
||||||
|
this.button1.Location = new System.Drawing.Point(205, 26);
|
||||||
|
this.button1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
||||||
|
this.button1.Name = "button1";
|
||||||
|
this.button1.Size = new System.Drawing.Size(82, 23);
|
||||||
|
this.button1.TabIndex = 2;
|
||||||
|
this.button1.Text = "Wybierz ikonę";
|
||||||
|
this.button1.UseVisualStyleBackColor = true;
|
||||||
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Location = new System.Drawing.Point(9, 49);
|
||||||
|
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(63, 13);
|
||||||
|
this.label2.TabIndex = 3;
|
||||||
|
this.label2.Text = "Tytuł ikony:";
|
||||||
|
//
|
||||||
|
// textBox2
|
||||||
|
//
|
||||||
|
this.textBox2.Location = new System.Drawing.Point(9, 65);
|
||||||
|
this.textBox2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
||||||
|
this.textBox2.Name = "textBox2";
|
||||||
|
this.textBox2.Size = new System.Drawing.Size(279, 20);
|
||||||
|
this.textBox2.TabIndex = 4;
|
||||||
|
this.textBox2.Text = "Pokaż sztuczny błąd";
|
||||||
|
//
|
||||||
|
// button2
|
||||||
|
//
|
||||||
|
this.button2.Location = new System.Drawing.Point(205, 102);
|
||||||
|
this.button2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
||||||
|
this.button2.Name = "button2";
|
||||||
|
this.button2.Size = new System.Drawing.Size(82, 23);
|
||||||
|
this.button2.TabIndex = 8;
|
||||||
|
this.button2.Text = "Zapisz";
|
||||||
|
this.button2.UseVisualStyleBackColor = true;
|
||||||
|
this.button2.Click += new System.EventHandler(this.button2_Click);
|
||||||
|
//
|
||||||
|
// openFileDialog1
|
||||||
|
//
|
||||||
|
this.openFileDialog1.FileName = "openFileDialog1";
|
||||||
|
this.openFileDialog1.Filter = "Ikona (*.ico)|*.ico";
|
||||||
|
this.openFileDialog1.Title = "Wybierz ikonę powiadomienia";
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Location = new System.Drawing.Point(11, 89);
|
||||||
|
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(106, 13);
|
||||||
|
this.label3.TabIndex = 7;
|
||||||
|
this.label3.Text = "Reaguj na kliknięcie:";
|
||||||
|
//
|
||||||
|
// radioButton1
|
||||||
|
//
|
||||||
|
this.radioButton1.AutoSize = true;
|
||||||
|
this.radioButton1.Checked = true;
|
||||||
|
this.radioButton1.Location = new System.Drawing.Point(11, 105);
|
||||||
|
this.radioButton1.Margin = new System.Windows.Forms.Padding(2);
|
||||||
|
this.radioButton1.Name = "radioButton1";
|
||||||
|
this.radioButton1.Size = new System.Drawing.Size(80, 17);
|
||||||
|
this.radioButton1.TabIndex = 5;
|
||||||
|
this.radioButton1.TabStop = true;
|
||||||
|
this.radioButton1.Text = "Pojedyncze";
|
||||||
|
this.radioButton1.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// radioButton2
|
||||||
|
//
|
||||||
|
this.radioButton2.AutoSize = true;
|
||||||
|
this.radioButton2.Location = new System.Drawing.Point(93, 105);
|
||||||
|
this.radioButton2.Margin = new System.Windows.Forms.Padding(2);
|
||||||
|
this.radioButton2.Name = "radioButton2";
|
||||||
|
this.radioButton2.Size = new System.Drawing.Size(72, 17);
|
||||||
|
this.radioButton2.TabIndex = 6;
|
||||||
|
this.radioButton2.Text = "Podwójne";
|
||||||
|
this.radioButton2.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// UstawieniaNotify
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(296, 134);
|
||||||
|
this.Controls.Add(this.button2);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.radioButton2);
|
||||||
|
this.Controls.Add(this.radioButton1);
|
||||||
|
this.Controls.Add(this.textBox2);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.button1);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Controls.Add(this.textBox1);
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
||||||
|
this.MaximumSize = new System.Drawing.Size(312, 173);
|
||||||
|
this.MinimumSize = new System.Drawing.Size(312, 173);
|
||||||
|
this.Name = "UstawieniaNotify";
|
||||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
|
this.Text = "Ustawienia Notify";
|
||||||
|
this.Load += new System.EventHandler(this.UstawieniaNotify_Load);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.TextBox textBox1;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Button button1;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.TextBox textBox2;
|
||||||
|
private System.Windows.Forms.Button button2;
|
||||||
|
private System.Windows.Forms.OpenFileDialog openFileDialog1;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.RadioButton radioButton1;
|
||||||
|
private System.Windows.Forms.RadioButton radioButton2;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
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 ErrorGenerator
|
||||||
|
{
|
||||||
|
public partial class UstawieniaNotify : Form
|
||||||
|
{
|
||||||
|
static Properties.Settings settings = new Properties.Settings();
|
||||||
|
public UstawieniaNotify()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void button1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if(openFileDialog1.ShowDialog() == DialogResult.OK)
|
||||||
|
{
|
||||||
|
textBox1.Text = openFileDialog1.FileName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void UstawieniaNotify_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
textBox1.Text = settings.Ikona;
|
||||||
|
textBox2.Text = settings.TytulIkony;
|
||||||
|
if (settings.Klikniecie == 0)
|
||||||
|
{
|
||||||
|
radioButton1.Checked = true;
|
||||||
|
radioButton2.Checked = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
radioButton1.Checked = false;
|
||||||
|
radioButton2.Checked = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void button2_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
settings.Ikona = textBox1.Text;
|
||||||
|
settings.TytulIkony = textBox2.Text;
|
||||||
|
if (radioButton1.Checked)
|
||||||
|
settings.Klikniecie = 0;
|
||||||
|
else
|
||||||
|
settings.Klikniecie = 1;
|
||||||
|
|
||||||
|
settings.Save();
|
||||||
|
MessageBox.Show("Ustawienia Notify zostały zapisane", "Zapisano!", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -1,6 +1,24 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||||
|
<section name="ErrorGenerator.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||||
|
</sectionGroup>
|
||||||
|
</configSections>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
|
||||||
</startup>
|
</startup>
|
||||||
|
<userSettings>
|
||||||
|
<ErrorGenerator.Properties.Settings>
|
||||||
|
<setting name="Ikona" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="TytulIkony" serializeAs="String">
|
||||||
|
<value>Pokaż sztuczny błąd</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Klikniecie" serializeAs="String">
|
||||||
|
<value>0</value>
|
||||||
|
</setting>
|
||||||
|
</ErrorGenerator.Properties.Settings>
|
||||||
|
</userSettings>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
Binary file not shown.
@@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = ".NET Framework 4.5")]
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
|||||||
49ddf053a8af5d6e9369e6d3a8e96ccab85129ad
|
6df95db7fa056ded3a99796d97f33477a2f25dd4
|
||||||
|
|||||||
@@ -8,3 +8,14 @@ C:\Users\Krzysiek\source\repos\ErrorGenerator\ErrorGenerator\bin\Debug\ErGen.exe
|
|||||||
C:\Users\Krzysiek\source\repos\ErrorGenerator\ErrorGenerator\bin\Debug\ErGen.pdb
|
C:\Users\Krzysiek\source\repos\ErrorGenerator\ErrorGenerator\bin\Debug\ErGen.pdb
|
||||||
C:\Users\Krzysiek\source\repos\ErrorGenerator\ErrorGenerator\obj\Debug\ErGen.exe
|
C:\Users\Krzysiek\source\repos\ErrorGenerator\ErrorGenerator\obj\Debug\ErGen.exe
|
||||||
C:\Users\Krzysiek\source\repos\ErrorGenerator\ErrorGenerator\obj\Debug\ErGen.pdb
|
C:\Users\Krzysiek\source\repos\ErrorGenerator\ErrorGenerator\obj\Debug\ErGen.pdb
|
||||||
|
C:\Users\Krzysiek\Documents\GitHub\ErGen\ErrorGenerator\bin\Debug\ErGen.exe.config
|
||||||
|
C:\Users\Krzysiek\Documents\GitHub\ErGen\ErrorGenerator\bin\Debug\ErGen.exe
|
||||||
|
C:\Users\Krzysiek\Documents\GitHub\ErGen\ErrorGenerator\bin\Debug\ErGen.pdb
|
||||||
|
C:\Users\Krzysiek\Documents\GitHub\ErGen\ErrorGenerator\obj\Debug\ErrorGenerator.csprojAssemblyReference.cache
|
||||||
|
C:\Users\Krzysiek\Documents\GitHub\ErGen\ErrorGenerator\obj\Debug\ErrorGenerator.Form1.resources
|
||||||
|
C:\Users\Krzysiek\Documents\GitHub\ErGen\ErrorGenerator\obj\Debug\ErrorGenerator.Properties.Resources.resources
|
||||||
|
C:\Users\Krzysiek\Documents\GitHub\ErGen\ErrorGenerator\obj\Debug\ErrorGenerator.csproj.GenerateResource.cache
|
||||||
|
C:\Users\Krzysiek\Documents\GitHub\ErGen\ErrorGenerator\obj\Debug\ErrorGenerator.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\Krzysiek\Documents\GitHub\ErGen\ErrorGenerator\obj\Debug\ErGen.exe
|
||||||
|
C:\Users\Krzysiek\Documents\GitHub\ErGen\ErrorGenerator\obj\Debug\ErGen.pdb
|
||||||
|
C:\Users\Krzysiek\Documents\GitHub\ErGen\ErrorGenerator\obj\Debug\ErrorGenerator.UstawieniaNotify.resources
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,9 @@
|
|||||||
# ErGen
|
# ErGen
|
||||||
Program służący do generowania sztucznych komunikatów lub błędów systemowych.
|
Program służący do generowania sztucznych komunikatów lub błędów systemowych.<br>
|
||||||
|
Wymagany <a href="https://www.microsoft.com/pl-pl/download/details.aspx?id=30653">.NET Framework 4.5</a>
|
||||||
|
|
||||||
Wymagany .NET Framework 4.5
|
Przejdź do pobierania ErGena<br>
|
||||||
|
### <a href="https://github.com/KrzysiekSiemv/ErGen/releases/tag/1.0.0">Releases</a>
|
||||||
|
<br>
|
||||||
|
Screen programu w wersji 1.0.0<br>
|
||||||
|
<img src="https://i.imgur.com/qfB4NSK.png" />
|
||||||
|
|||||||
Reference in New Issue
Block a user