This commit is contained in:
Mike Schwörer 2017-05-16 09:59:43 +02:00
commit 601324b2a4
2 changed files with 861 additions and 845 deletions

View File

@ -109,6 +109,7 @@
this.edClockBit = new System.Windows.Forms.TextBox();
this.btnClockStart = new System.Windows.Forms.Button();
this.edCLockFreq = new System.Windows.Forms.TextBox();
this.WakeUpButton = new System.Windows.Forms.Button();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
//
@ -286,13 +287,11 @@
//
// columnHeader3
//
this.columnHeader3.DisplayIndex = 4;
this.columnHeader3.Text = "2";
this.columnHeader3.Width = 32;
//
// columnHeader4
//
this.columnHeader4.DisplayIndex = 3;
this.columnHeader4.Text = "3";
this.columnHeader4.Width = 32;
//
@ -824,11 +823,22 @@
this.edCLockFreq.TabIndex = 62;
this.edCLockFreq.Text = "1500";
//
// WakeUpButton
//
this.WakeUpButton.Location = new System.Drawing.Point(254, 31);
this.WakeUpButton.Name = "WakeUpButton";
this.WakeUpButton.Size = new System.Drawing.Size(63, 21);
this.WakeUpButton.TabIndex = 63;
this.WakeUpButton.Text = "Wake Up";
this.WakeUpButton.UseVisualStyleBackColor = true;
this.WakeUpButton.Click += new System.EventHandler(this.button1_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1298, 692);
this.Controls.Add(this.WakeUpButton);
this.Controls.Add(this.edCLockFreq);
this.Controls.Add(this.btnClockStart);
this.Controls.Add(this.edClockBit);
@ -980,6 +990,7 @@
private System.Windows.Forms.TextBox edClockBit;
private System.Windows.Forms.Button btnClockStart;
private System.Windows.Forms.TextBox edCLockFreq;
private System.Windows.Forms.Button WakeUpButton;
}
}

View File

@ -523,6 +523,11 @@ namespace PIC_Simulator
programm.TaktgeberAdresse = Convert.ToUInt32(edClockAddr.Text.Substring(2), 16);
programm.TaktgeberBitnummer = uint.Parse(edClockBit.Text);
}
private void button1_Click(object sender, EventArgs e)
{
programm.IsSleeping = false; //Kein WatchdogTimer implementiert, Sleep durch button deaktiviert
}
}
}