C# 错误:GUI设计文件中未声明变量
新手问题。我下载了一个用C#编写的项目的源代码。用于构建GUI的某个设计器文件中出现错误。资料来源附于下文:C# 错误:GUI设计文件中未声明变量,c#,user-interface,C#,User Interface,新手问题。我下载了一个用C#编写的项目的源代码。用于构建GUI的某个设计器文件中出现错误。资料来源附于下文: namespace Neurotec.Samples { partial class MainForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components
namespace Neurotec.Samples
{
partial class MainForm
{
/// <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(MainForm));
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPageEnrollFromFile = new System.Windows.Forms.TabPage();
this.enrollFromFilePanel = new Neurotec.Samples.EnrollFromFile();
this.tabPageEnrollFromMicrophone = new System.Windows.Forms.TabPage();
this.enrollFromMicrophonePanel = new Neurotec.Samples.EnrollFromMicrophone();
this.tabPageVerify = new System.Windows.Forms.TabPage();
this.verifyVoicePanel = new Neurotec.Samples.VerifyVoice();
this.tabPageIdentify = new System.Windows.Forms.TabPage();
this.identifyVoicePanel = new Neurotec.Samples.IdentifyVoice();
this.tabControl1.SuspendLayout();
this.tabPageEnrollFromFile.SuspendLayout();
this.tabPageEnrollFromMicrophone.SuspendLayout();
this.tabPageVerify.SuspendLayout();
this.tabPageIdentify.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPageEnrollFromFile);
this.tabControl1.Controls.Add(this.tabPageEnrollFromMicrophone);
this.tabControl1.Controls.Add(this.tabPageVerify);
this.tabControl1.Controls.Add(this.tabPageIdentify);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(551, 398);
this.tabControl1.TabIndex = 0;
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.TabControlSelectedIndexChanged);
//
// enrollFromFilePanel
//
this.enrollFromFilePanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.enrollFromFilePanel.Location = new System.Drawing.Point(3, 3);
this.enrollFromFilePanel.Name = "enrollFromFilePanel";
this.enrollFromFilePanel.Size = new System.Drawing.Size(540, 316);
this.enrollFromFilePanel.TabIndex = 0;
//
// tabPageEnrollFromFile
//
this.tabPageEnrollFromFile.Controls.Add(this.enrollFromFilePanel);
this.tabPageEnrollFromFile.Location = new System.Drawing.Point(4, 22);
this.tabPageEnrollFromFile.Name = "tabPageEnrollFromFile";
this.tabPageEnrollFromFile.Padding = new System.Windows.Forms.Padding(3);
this.tabPageEnrollFromFile.Size = new System.Drawing.Size(546, 322);
this.tabPageEnrollFromFile.TabIndex = 0;
this.tabPageEnrollFromFile.Text = "Enroll From File";
this.tabPageEnrollFromFile.UseVisualStyleBackColor = true;
//
// tabPageEnrollFromMicrophone
//
this.tabPageEnrollFromMicrophone.Controls.Add(this.enrollFromMicrophonePanel);
this.tabPageEnrollFromMicrophone.Location = new System.Drawing.Point(4, 22);
this.tabPageEnrollFromMicrophone.Name = "tabPageEnrollFromMicrophone";
this.tabPageEnrollFromMicrophone.Padding = new System.Windows.Forms.Padding(3);
this.tabPageEnrollFromMicrophone.Size = new System.Drawing.Size(546, 322);
this.tabPageEnrollFromMicrophone.TabIndex = 1;
this.tabPageEnrollFromMicrophone.Text = "Enroll From Microphone";
this.tabPageEnrollFromMicrophone.UseVisualStyleBackColor = true;
//
// enrollFromMicrophonePanel
//
this.enrollFromMicrophonePanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.enrollFromMicrophonePanel.Location = new System.Drawing.Point(3, 3);
this.enrollFromMicrophonePanel.Name = "enrollFromMicrophonePanel";
this.enrollFromMicrophonePanel.Size = new System.Drawing.Size(540, 316);
this.enrollFromMicrophonePanel.TabIndex = 0;
//
// tabPageVerify
//
this.tabPageVerify.Controls.Add(this.verifyVoicePanel);
this.tabPageVerify.Location = new System.Drawing.Point(4, 22);
this.tabPageVerify.Name = "tabPageVerify";
this.tabPageVerify.Size = new System.Drawing.Size(546, 322);
this.tabPageVerify.TabIndex = 2;
this.tabPageVerify.Text = "Verify Voice";
this.tabPageVerify.UseVisualStyleBackColor = true;
//
// verifyVoicePanel
//
this.verifyVoicePanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.verifyVoicePanel.Location = new System.Drawing.Point(0, 0);
this.verifyVoicePanel.Name = "verifyVoicePanel";
this.verifyVoicePanel.Size = new System.Drawing.Size(546, 322);
this.verifyVoicePanel.TabIndex = 0;
//
// tabPageIdentify
//
this.tabPageIdentify.Controls.Add(this.identifyVoicePanel);
this.tabPageIdentify.Location = new System.Drawing.Point(4, 22);
this.tabPageIdentify.Name = "tabPageIdentify";
this.tabPageIdentify.Size = new System.Drawing.Size(543, 372);
this.tabPageIdentify.TabIndex = 3;
this.tabPageIdentify.Text = "Identify Voice";
this.tabPageIdentify.UseVisualStyleBackColor = true;
//
// identifyVoicePanel
//
this.identifyVoicePanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.identifyVoicePanel.Location = new System.Drawing.Point(0, 0);
this.identifyVoicePanel.Name = "identifyVoicePanel";
this.identifyVoicePanel.Size = new System.Drawing.Size(543, 372);
this.identifyVoicePanel.TabIndex = 0;
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(551, 398);
this.Controls.Add(this.tabControl1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "MainForm";
this.Text = "Simple Voices Sample";
this.Load += new System.EventHandler(this.MainFormLoad);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainFormFormClosing);
this.tabControl1.ResumeLayout(false);
this.tabPageEnrollFromFile.ResumeLayout(false);
this.tabPageEnrollFromMicrophone.ResumeLayout(false);
this.tabPageVerify.ResumeLayout(false);
this.tabPageIdentify.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPageEnrollFromFile;
private System.Windows.Forms.TabPage tabPageEnrollFromMicrophone;
private System.Windows.Forms.TabPage tabPageVerify;
private System.Windows.Forms.TabPage tabPageIdentify;
private EnrollFromFile enrollFromFilePanel;
private EnrollFromMicrophone enrollFromMicrophonePanel;
private VerifyVoice verifyVoicePanel;
private IdentifyVoice identifyVoicePanel;
}
namespace neurtec.Samples
{
部分类主形式
{
///
///必需的设计器变量。
///
private System.ComponentModel.IContainer components=null;
///
///清理所有正在使用的资源。
///
///如果应释放托管资源,则为true;否则为false。
受保护的覆盖无效处置(布尔处置)
{
if(处理和(组件!=null))
{
组件。Dispose();
}
基地。处置(处置);
}
#区域Windows窗体设计器生成的代码
///
///设计器支持所需的方法-不修改
///此方法的内容与代码编辑器一起使用。
///
私有void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager资源=新的System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.tabControl1=new System.Windows.Forms.TabControl();
this.tabPageEnrollFromFile=new System.Windows.Forms.TabPage();
this.enrollFromFilePanel=new Neurotec.Samples.EnrollFromFile();
this.tabpageEnrollFromMirror=new System.Windows.Forms.TabPage();
this.enrollFromMicrophonePanel=new Neurotec.Samples.EnrollFromMicrophone();
this.tabPageVerify=new System.Windows.Forms.TabPage();
this.verifyVoicePanel=新的Neurotec.Samples.VerifyVoice();
this.tabPageIdentify=new System.Windows.Forms.TabPage();
this.identifVoicePanel=新的Neurotec.Samples.identifVoice();
this.tabControl1.SuspendLayout();
此.tabPageEnrollFromFile.SuspendLayout();
this.tabPageFromMirror.SuspendLayout();
此参数为.tabPageVerify.SuspendLayout();
this.tabPageIdentify.SuspendLayout();
这个.SuspendLayout();
//
//tabControl1
//
this.tabControl1.Controls.Add(this.tabPageEnrollFromFile);
this.tabControl1.Controls.Add(this.tabpageFromMirror);
this.tabControl1.Controls.Add(this.tabPageVerify);
this.tabControl1.Controls.Add(this.tabpageIdentified);
this.tabControl1.Dock=System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Location=新系统.Drawing.Point(0,0);
this.tabControl1.Name=“tabControl1”;
this.tabControl1.SelectedIndex=0;
this.tabControl1.Size=新系统.Drawing.Size(551398);
this.tabControl1.TabIndex=0;
this.tabControl1.SelectedIndexChanged+=新的System.EventHandler(this.TabControlSelectedIndexChanged);
//
//从文件面板注册
//
this.enrollFromFilePanel.Dock=System.Windows.Forms.DockStyle.Fill;
this.enrollFromFilePanel.Location=新系统.Drawing.Point(3,3);
this.enrollFromFilePanel.Name=“enrollFromFilePanel”;
this.enrollFromFilePanel.Size=新系统.Drawing.Size(540316);
this.enrollFromFilePanel.TabIndex=0;
//
//tabPageEnrollFromFile
//
this.tabPageEnrollFromFile.Controls.Add(this.enrollFromFilePanel);
this.tabPageEnrollFromFile.Location=新系统.Drawing.Point(4,22);
this.tabPageEnrollFromFile.Name=“tabPageEnrollFromFile”;
this.tabPageEnrollFromFile.Padding=new System.Windows.Forms.Padding(3);
this.tabPageEnrollFromFile.Size=new System.Drawing.Size(546322);
this.tabPageEnrollFromFile.TabIndex=0;
this.tabPageEnrollFromFile.Text=“从文件注册”;
this.tabPageEnrollFromFile.UseVisualStyleBackColor=true;
//
//选项卡式麦克风
//
this.tabpageEnrollFrom麦克风.Controls.Add(this.EnrollFrom麦克风面板);
this.tabpageEnrollFromMirror.Location=新系统.图纸.点(4,22);
this.tabpageEnrollFromMirror.Name=“tabpageEnrollFromMirror”;
this.tabpageEnrollFromMirror.Padding=new System.Windows.Forms.Padding(3);
this.tabpageEnrollFromMirror.Size=新系统.图纸.尺寸(546322);
this.tabpageEnrollFromMirror.TabIndex=1;
this.tabpageEnrollFromMirror.Text=“从麦克风注册”;
this.tabpageEnrollFromMirror.UseVisualStyleBackColor=true;
//
//麦克风面板
//
this.EnrollFrommichonePanel.Dock=System.Windows.Forms.DockStyle.Fill;
this.EnrollFrommichonePanel.Location=新系统.图纸.点(3,3);
this.enrollFromMicrophonePanel.Name=“enrollFromMicrophonePanel”;
this.fromMicrophonePanel.Size=新系统图纸尺寸(540316);
this.enrollFromMicrophonePanel.TabIndex=0;
//
//tabPageVerify
//
this.tabPageVerify.Controls.Add(this.verifyVoicePanel);
this.tabPageVerify.Location=新系统.图纸.点(4,22);
this.tabPageVerify.Name=“tabPageVerify”;
this.tabPageVerify.Size=新系统.图纸.尺寸(546322);
this.tabPageVerify.TabIndex=2;
this.tabPageVerify.Text=“验证语音”;
this.tabPageVerify.UseVisualStyleBackColor=true;
//
//验证语音面板
//
this.verifyVoicePanel.Dock=System.Windows.Forms.DockStyle.Fill;
this.verifyVoicePanel.Location=新系统.图纸.点(0,0);
this.verifyVoicePanel.Name=“verifyVoicePanel”;
this.verifyVoicePanel.Size=新系统.图纸.尺寸(546322);
this.verifyVoicePanel.TabIndex=0;
//
//标签页标识
//
this.tabPageIdentify.Controls.Add(this.identifyVoicePanel);
this.tabpageIdentification.Location=新系统.图纸.点(4,22);
this.tabPageIdentify.Name=“tabPageIdentify”;
这