📄 form1.cs
字号:
using System;
using System.IO;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace ECG_test
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.StatusBar statusBar1;
private System.Windows.Forms.Button BtnOpenFile;
private System.Windows.Forms.Button BtnNextPage;
private System.Windows.Forms.Button BtnPreviousPage;
private System.Windows.Forms.Button BtnPlayWave;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.RadioButton radioButton3;
private System.Windows.Forms.RadioButton radioButton4;
private System.Windows.Forms.RadioButton radioButton1;
private System.Windows.Forms.RadioButton radioButton5;
private System.Windows.Forms.RadioButton radioButton6;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.Button BtnTWaveProcessed;
private System.Windows.Forms.Button BtnQRSProcessed;
private System.Windows.Forms.Button BtnWT;
private System.Windows.Forms.TrackBar trackBar1;
private System.ComponentModel.IContainer components;
public Form1()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.BtnOpenFile = new System.Windows.Forms.Button();
this.BtnNextPage = new System.Windows.Forms.Button();
this.BtnPreviousPage = new System.Windows.Forms.Button();
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.BtnPlayWave = new System.Windows.Forms.Button();
this.BtnTWaveProcessed = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.radioButton6 = new System.Windows.Forms.RadioButton();
this.radioButton5 = new System.Windows.Forms.RadioButton();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.radioButton3 = new System.Windows.Forms.RadioButton();
this.radioButton2 = new System.Windows.Forms.RadioButton();
this.radioButton4 = new System.Windows.Forms.RadioButton();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.BtnWT = new System.Windows.Forms.Button();
this.BtnQRSProcessed = new System.Windows.Forms.Button();
this.trackBar1 = new System.Windows.Forms.TrackBar();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.BackColor = System.Drawing.SystemColors.Control;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Cursor = System.Windows.Forms.Cursors.Arrow;
this.panel1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.panel1.Location = new System.Drawing.Point(168, 27);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(768, 613);
this.panel1.TabIndex = 4;
this.panel1.TabStop = true;
this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
//
// BtnOpenFile
//
this.BtnOpenFile.BackColor = System.Drawing.SystemColors.Control;
this.BtnOpenFile.Font = new System.Drawing.Font("黑体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.BtnOpenFile.Location = new System.Drawing.Point(24, 27);
this.BtnOpenFile.Name = "BtnOpenFile";
this.BtnOpenFile.Size = new System.Drawing.Size(75, 27);
this.BtnOpenFile.TabIndex = 1;
this.BtnOpenFile.Text = "打开文件";
this.BtnOpenFile.Click += new System.EventHandler(this.BtnOpenFile_Click);
//
// BtnNextPage
//
this.BtnNextPage.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.BtnNextPage.ForeColor = System.Drawing.Color.Crimson;
this.BtnNextPage.Location = new System.Drawing.Point(24, 183);
this.BtnNextPage.Name = "BtnNextPage";
this.BtnNextPage.Size = new System.Drawing.Size(75, 26);
this.BtnNextPage.TabIndex = 2;
this.BtnNextPage.Text = "下一页";
this.BtnNextPage.Click += new System.EventHandler(this.BtnNextPage_Click);
//
// BtnPreviousPage
//
this.BtnPreviousPage.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.BtnPreviousPage.ForeColor = System.Drawing.Color.Coral;
this.BtnPreviousPage.Location = new System.Drawing.Point(24, 128);
this.BtnPreviousPage.Name = "BtnPreviousPage";
this.BtnPreviousPage.Size = new System.Drawing.Size(75, 26);
this.BtnPreviousPage.TabIndex = 3;
this.BtnPreviousPage.Text = "上一页";
this.BtnPreviousPage.Click += new System.EventHandler(this.BtnPreviousPage_Click);
//
// statusBar1
//
this.statusBar1.Cursor = System.Windows.Forms.Cursors.Default;
this.statusBar1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.statusBar1.Location = new System.Drawing.Point(0, 687);
this.statusBar1.Name = "statusBar1";
this.statusBar1.Size = new System.Drawing.Size(990, 25);
this.statusBar1.SizingGrip = false;
this.statusBar1.TabIndex = 4;
this.statusBar1.Text = "起始数据点位置:";
this.statusBar1.PanelClick += new System.Windows.Forms.StatusBarPanelClickEventHandler(this.statusBar1_PanelClick);
//
// BtnPlayWave
//
this.BtnPlayWave.Enabled = false;
this.BtnPlayWave.ForeColor = System.Drawing.Color.Green;
this.BtnPlayWave.Location = new System.Drawing.Point(24, 73);
this.BtnPlayWave.Name = "BtnPlayWave";
this.BtnPlayWave.Size = new System.Drawing.Size(75, 26);
this.BtnPlayWave.TabIndex = 5;
this.BtnPlayWave.Text = "播放";
this.BtnPlayWave.Click += new System.EventHandler(this.BtnPlayWave_Click);
//
// BtnTWaveProcessed
//
this.BtnTWaveProcessed.Font = new System.Drawing.Font("Times New Roman", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.BtnTWaveProcessed.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(0)), ((System.Byte)(64)));
this.BtnTWaveProcessed.Location = new System.Drawing.Point(152, 656);
this.BtnTWaveProcessed.Name = "BtnTWaveProcessed";
this.BtnTWaveProcessed.Size = new System.Drawing.Size(80, 26);
this.BtnTWaveProcessed.TabIndex = 6;
this.BtnTWaveProcessed.Text = "T波";
this.BtnTWaveProcessed.Visible = false;
this.BtnTWaveProcessed.Click += new System.EventHandler(this.BtnTWaveProcessed_Click);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.radioButton6);
this.groupBox1.Controls.Add(this.radioButton5);
this.groupBox1.Location = new System.Drawing.Point(16, 18);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(120, 92);
this.groupBox1.TabIndex = 7;
this.groupBox1.TabStop = false;
this.groupBox1.Text = " 采样方式";
//
// radioButton6
//
this.radioButton6.Enabled = false;
this.radioButton6.Location = new System.Drawing.Point(8, 55);
this.radioButton6.Name = "radioButton6";
this.radioButton6.Size = new System.Drawing.Size(104, 27);
this.radioButton6.TabIndex = 1;
this.radioButton6.Text = "弗兰克";
//
// radioButton5
//
this.radioButton5.Checked = true;
this.radioButton5.Location = new System.Drawing.Point(8, 18);
this.radioButton5.Name = "radioButton5";
this.radioButton5.Size = new System.Drawing.Size(104, 28);
this.radioButton5.TabIndex = 0;
this.radioButton5.TabStop = true;
this.radioButton5.Text = "威尔逊";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.radioButton1);
this.groupBox2.Controls.Add(this.radioButton3);
this.groupBox2.Controls.Add(this.radioButton2);
this.groupBox2.Controls.Add(this.radioButton4);
this.groupBox2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.groupBox2.Location = new System.Drawing.Point(16, 119);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(120, 164);
this.groupBox2.TabIndex = 8;
this.groupBox2.TabStop = false;
//
// radioButton1
//
this.radioButton1.Location = new System.Drawing.Point(8, 18);
this.radioButton1.Name = "radioButton1";
this.radioButton1.Size = new System.Drawing.Size(104, 28);
this.radioButton1.TabIndex = 3;
this.radioButton1.TabStop = true;
this.radioButton1.Text = "威尔逊12导联";
this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
//
// radioButton3
//
this.radioButton3.Checked = true;
this.radioButton3.Location = new System.Drawing.Point(8, 91);
this.radioButton3.Name = "radioButton3";
this.radioButton3.Size = new System.Drawing.Size(104, 28);
this.radioButton3.TabIndex = 2;
this.radioButton3.TabStop = true;
this.radioButton3.Text = "胸导联";
this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged);
//
// radioButton2
//
this.radioButton2.Location = new System.Drawing.Point(8, 55);
this.radioButton2.Name = "radioButton2";
this.radioButton2.Size = new System.Drawing.Size(104, 27);
this.radioButton2.TabIndex = 1;
this.radioButton2.Text = "单极加压导联";
this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged);
//
// radioButton4
//
this.radioButton4.Location = new System.Drawing.Point(8, 128);
this.radioButton4.Name = "radioButton4";
this.radioButton4.Size = new System.Drawing.Size(104, 27);
this.radioButton4.TabIndex = 0;
this.radioButton4.Text = "标准肢体导联";
this.radioButton4.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged);
//
// groupBox3
//
this.groupBox3.Controls.Add(this.BtnOpenFile);
this.groupBox3.Controls.Add(this.BtnPlayWave);
this.groupBox3.Controls.Add(this.BtnPreviousPage);
this.groupBox3.Controls.Add(this.BtnNextPage);
this.groupBox3.Location = new System.Drawing.Point(16, 288);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(120, 228);
this.groupBox3.TabIndex = 9;
this.groupBox3.TabStop = false;
this.groupBox3.Text = " 功能按钮";
//
// groupBox4
//
this.groupBox4.Controls.Add(this.BtnWT);
this.groupBox4.Controls.Add(this.BtnQRSProcessed);
this.groupBox4.Controls.Add(this.trackBar1);
this.groupBox4.Location = new System.Drawing.Point(16, 520);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(120, 157);
this.groupBox4.TabIndex = 10;
this.groupBox4.TabStop = false;
this.groupBox4.Text = " 心电信号处理";
this.groupBox4.Enter += new System.EventHandler(this.groupBox4_Enter);
//
// BtnWT
//
this.BtnWT.Font = new System.Drawing.Font("Times New Roman", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.BtnWT.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(0)), ((System.Byte)(64)));
this.BtnWT.Location = new System.Drawing.Point(24, 32);
this.BtnWT.Name = "BtnWT";
this.BtnWT.Size = new System.Drawing.Size(80, 26);
this.BtnWT.TabIndex = 8;
this.BtnWT.Text = "沃尔什变换";
this.BtnWT.Click += new System.EventHandler(this.BtnWT_Click);
//
// BtnQRSProcessed
//
this.BtnQRSProcessed.Font = new System.Drawing.Font("Times New Roman", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.BtnQRSProcessed.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(0)), ((System.Byte)(64)));
this.BtnQRSProcessed.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnQRSProcessed.Location = new System.Drawing.Point(24, 75);
this.BtnQRSProcessed.Name = "BtnQRSProcessed";
this.BtnQRSProcessed.Size = new System.Drawing.Size(80, 27);
this.BtnQRSProcessed.TabIndex = 7;
this.BtnQRSProcessed.Text = "判定层届点";
this.BtnQRSProcessed.Click += new System.EventHandler(this.BtnQRSProcessed_Click);
//
// trackBar1
//
this.trackBar1.LargeChange = 1;
this.trackBar1.Location = new System.Drawing.Point(16, 112);
this.trackBar1.Maximum = 30;
this.trackBar1.Name = "trackBar1";
this.trackBar1.Size = new System.Drawing.Size(96, 45);
this.trackBar1.TabIndex = 11;
this.trackBar1.Value = 15;
this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);
//
// Form1
//
this.AllowDrop = true;
this.AutoScaleBaseSize = new System.Drawing.Size(6, 16);
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(990, 712);
this.Controls.Add(this.groupBox4);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.statusBar1);
this.Controls.Add(this.panel1);
this.Controls.Add(this.BtnTWaveProcessed);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form1";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -