⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manifestutilitymainform.cs

📁 怎样的图象处理的
💻 CS
📖 第 1 页 / 共 3 页
字号:
			this.validatorAssemblyLbl.Font = new System.Drawing.Font("Lucida Sans Unicode", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.validatorAssemblyLbl.Location = new System.Drawing.Point(19, 240);
			this.validatorAssemblyLbl.Name = "validatorAssemblyLbl";
			this.validatorAssemblyLbl.Size = new System.Drawing.Size(154, 25);
			this.validatorAssemblyLbl.TabIndex = 10;
			this.validatorAssemblyLbl.Text = "校验器组件名:";
			// 
			// validatorAssembly
			// 
			this.validatorAssembly.Font = new System.Drawing.Font("Century Gothic", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.validatorAssembly.Location = new System.Drawing.Point(163, 241);
			this.validatorAssembly.Name = "validatorAssembly";
			this.validatorAssembly.ReadOnly = true;
			this.validatorAssembly.Size = new System.Drawing.Size(538, 21);
			this.validatorAssembly.TabIndex = 11;
			this.validatorAssembly.Text = "";
			this.validatorAssembly.TextChanged += new System.EventHandler(this.validatorAssembly_TextChanged);
			// 
			// browseForValidatorAssembly
			// 
			this.browseForValidatorAssembly.BackColor = System.Drawing.Color.Gold;
			this.browseForValidatorAssembly.Font = new System.Drawing.Font("Lucida Sans Unicode", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.browseForValidatorAssembly.Location = new System.Drawing.Point(710, 241);
			this.browseForValidatorAssembly.Name = "browseForValidatorAssembly";
			this.browseForValidatorAssembly.Size = new System.Drawing.Size(29, 25);
			this.browseForValidatorAssembly.TabIndex = 12;
			this.browseForValidatorAssembly.Text = "...";
			this.browseForValidatorAssembly.Click += new System.EventHandler(this.browseForValidatorAssembly_Click);
			// 
			// validatorClassLbl
			// 
			this.validatorClassLbl.Font = new System.Drawing.Font("Lucida Sans Unicode", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.validatorClassLbl.Location = new System.Drawing.Point(19, 280);
			this.validatorClassLbl.Name = "validatorClassLbl";
			this.validatorClassLbl.Size = new System.Drawing.Size(135, 25);
			this.validatorClassLbl.TabIndex = 13;
			this.validatorClassLbl.Text = "校验器类名:";
			// 
			// validatorClass
			// 
			this.validatorClass.Font = new System.Drawing.Font("Century Gothic", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.validatorClass.Location = new System.Drawing.Point(163, 276);
			this.validatorClass.Name = "validatorClass";
			this.validatorClass.Size = new System.Drawing.Size(538, 24);
			this.validatorClass.TabIndex = 14;
			// 
			// postProcessorAssemblyLbl
			// 
			this.postProcessorAssemblyLbl.Font = new System.Drawing.Font("Lucida Sans Unicode", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.postProcessorAssemblyLbl.Location = new System.Drawing.Point(144, 360);
			this.postProcessorAssemblyLbl.Name = "postProcessorAssemblyLbl";
			this.postProcessorAssemblyLbl.Size = new System.Drawing.Size(182, 25);
			this.postProcessorAssemblyLbl.TabIndex = 15;
			this.postProcessorAssemblyLbl.Text = "传递处理器组件名:";
			// 
			// usePostProcessor
			// 
			this.usePostProcessor.Font = new System.Drawing.Font("Lucida Sans Unicode", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.usePostProcessor.Location = new System.Drawing.Point(163, 327);
			this.usePostProcessor.Name = "usePostProcessor";
			this.usePostProcessor.Size = new System.Drawing.Size(125, 26);
			this.usePostProcessor.TabIndex = 16;
			this.usePostProcessor.Text = "是否需要传递校验";
			this.usePostProcessor.CheckedChanged += new System.EventHandler(this.usePostProcessor_CheckedChanged);
			// 
			// postProcessorAssembly
			// 
			this.postProcessorAssembly.Enabled = false;
			this.postProcessorAssembly.Font = new System.Drawing.Font("Century Gothic", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.postProcessorAssembly.Location = new System.Drawing.Point(326, 362);
			this.postProcessorAssembly.Name = "postProcessorAssembly";
			this.postProcessorAssembly.ReadOnly = true;
			this.postProcessorAssembly.Size = new System.Drawing.Size(375, 21);
			this.postProcessorAssembly.TabIndex = 17;
			this.postProcessorAssembly.Text = "";
			this.postProcessorAssembly.TextChanged += new System.EventHandler(this.postProcessorAssembly_TextChanged);
			// 
			// browseForPostProcessor
			// 
			this.browseForPostProcessor.BackColor = System.Drawing.Color.Gold;
			this.browseForPostProcessor.Enabled = false;
			this.browseForPostProcessor.Font = new System.Drawing.Font("Lucida Sans Unicode", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.browseForPostProcessor.Location = new System.Drawing.Point(710, 362);
			this.browseForPostProcessor.Name = "browseForPostProcessor";
			this.browseForPostProcessor.Size = new System.Drawing.Size(29, 25);
			this.browseForPostProcessor.TabIndex = 18;
			this.browseForPostProcessor.Text = "...";
			this.browseForPostProcessor.Click += new System.EventHandler(this.browseForPostProcessor_Click);
			// 
			// postProcessorClass
			// 
			this.postProcessorClass.Enabled = false;
			this.postProcessorClass.Font = new System.Drawing.Font("Century Gothic", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.postProcessorClass.Location = new System.Drawing.Point(326, 396);
			this.postProcessorClass.Name = "postProcessorClass";
			this.postProcessorClass.Size = new System.Drawing.Size(375, 24);
			this.postProcessorClass.TabIndex = 19;
			// 
			// postProcessorClassLbl
			// 
			this.postProcessorClassLbl.Font = new System.Drawing.Font("Lucida Sans Unicode", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.postProcessorClassLbl.Location = new System.Drawing.Point(144, 396);
			this.postProcessorClassLbl.Name = "postProcessorClassLbl";
			this.postProcessorClassLbl.Size = new System.Drawing.Size(163, 25);
			this.postProcessorClassLbl.TabIndex = 20;
			this.postProcessorClassLbl.Text = "传递处理器类名:";
			// 
			// createManifest
			// 
			this.createManifest.BackColor = System.Drawing.Color.Gold;
			this.createManifest.Font = new System.Drawing.Font("Lucida Sans Unicode", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.createManifest.Location = new System.Drawing.Point(614, 465);
			this.createManifest.Name = "createManifest";
			this.createManifest.Size = new System.Drawing.Size(135, 25);
			this.createManifest.TabIndex = 21;
			this.createManifest.Text = "生成配置文件";
			this.createManifest.Click += new System.EventHandler(this.createManifest_Click);
			// 
			// folderDialog
			// 
			this.folderDialog.SelectedPath = "C:\\Documents and Settings\\Graeme.LUGG4GE\\My Documents";
			// 
			// validatorDialog
			// 
			this.validatorDialog.Filter = "DLL Files (*.dll)|*.dll|Executables (*.exe)|*.exe";
			// 
			// postProcessorDialog
			// 
			this.postProcessorDialog.Filter = "DLL Files (*.dll)|*.dll|Executables (*.exe)|*.exe";
			// 
			// manifestDialog
			// 
			this.manifestDialog.FileName = "Manifest.xml";
			this.manifestDialog.Filter = "xml files|*.xml|All Files *.*|*.**";
			// 
			// keyDialog
			// 
			this.keyDialog.Filter = "xml files|*.xml|All Files *.*|*.*";
			// 
			// mainMenu1
			// 
			this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.fileMenu});
			// 
			// fileMenu
			// 
			this.fileMenu.Index = 0;
			this.fileMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					 this.fileCreateManifestMenu,
																					 this.fileGenerateKeysMenu,
																					 this.fileExitMenu});
			this.fileMenu.Text = "文件操作(&F)";
			// 
			// fileCreateManifestMenu
			// 
			this.fileCreateManifestMenu.Index = 0;
			this.fileCreateManifestMenu.Text = "生成配置文件( &M)";
			this.fileCreateManifestMenu.Click += new System.EventHandler(this.fileCreateManifestMenu_Click);
			// 
			// fileGenerateKeysMenu
			// 
			this.fileGenerateKeysMenu.Index = 1;
			this.fileGenerateKeysMenu.Text = "生成密匙 (&K)";
			this.fileGenerateKeysMenu.Click += new System.EventHandler(this.fileGenerateKeysMenu_Click);
			// 
			// fileExitMenu
			// 
			this.fileExitMenu.Index = 2;
			this.fileExitMenu.Text = "退出(&E)";
			this.fileExitMenu.Click += new System.EventHandler(this.fileExitMenu_Click);
			// 
			// ManifestUtilityMainForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.Color.Tan;
			this.ClientSize = new System.Drawing.Size(768, 497);
			this.Controls.Add(this.createManifest);
			this.Controls.Add(this.postProcessorClassLbl);
			this.Controls.Add(this.postProcessorClass);
			this.Controls.Add(this.browseForPostProcessor);
			this.Controls.Add(this.postProcessorAssembly);
			this.Controls.Add(this.usePostProcessor);
			this.Controls.Add(this.postProcessorAssemblyLbl);
			this.Controls.Add(this.validatorClass);
			this.Controls.Add(this.validatorClassLbl);
			this.Controls.Add(this.browseForValidatorAssembly);
			this.Controls.Add(this.validatorAssembly);
			this.Controls.Add(this.validatorAssemblyLbl);
			this.Controls.Add(this.browseForKey);
			this.Controls.Add(this.keyLbl);
			this.Controls.Add(this.key);
			this.Controls.Add(this.version);
			this.Controls.Add(this.versionLbl);
			this.Controls.Add(this.updateLocation);
			this.Controls.Add(this.updateLocationLbl);
			this.Controls.Add(this.browseForFolder);
			this.Controls.Add(this.folderPath);
			this.Controls.Add(this.folderLbl);
			this.MaximumSize = new System.Drawing.Size(776, 544);
			this.Menu = this.mainMenu1;
			this.MinimumSize = new System.Drawing.Size(776, 544);
			this.Name = "ManifestUtilityMainForm";
			this.Text = "发布程序配置文件生成工具(Copyright to Microsoft)";
			this.Load += new System.EventHandler(this.ManifestUtilityMainForm_Load);
			this.ResumeLayout(false);

		}
		#endregion
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new ManifestUtilityMainForm());
		}

		#endregion

		#region control event handlers
		private void browseForFolder_Click(object sender, System.EventArgs e)
		{
//  can only use FolderBrowserDialog in FX1.1
#if FRAMEWORK_1_1
			//  set path to what's in text box
			folderDialog.SelectedPath = folderPath.Text;
			DialogResult dR = folderDialog.ShowDialog();
			if( DialogResult.OK == dR )
			{
				folderPath.Text = folderDialog.SelectedPath + @"\";
			}
#endif
		}

		
		private void ManifestUtilityMainForm_Load(object sender, System.EventArgs e)
		{
			initializeDialogs();
		}

		
		private void validatorAssembly_TextChanged(object sender, System.EventArgs e)
		{
			ListClasses(validatorAssembly.Text, "IValidator", validatorClass);
		}

		
		private void browseForValidatorAssembly_Click(object sender, System.EventArgs e)
		{
			if(validatorDialog.ShowDialog() == DialogResult.OK)
			{
				validatorAssembly.Text = validatorDialog.FileName;
			}

		}

		
		private void browseForKey_Click(object sender, System.EventArgs e)
		{
			//  set path to same as where updates located, possible starting point for where private key might be temporarily stored.
			//  NOTE:  ****  DO NOT KEEP PRIVATE KEY ANYWHERE NEAR WEB FOLDERS, PRIVATE KEY MUST BE KEPT __VERY__ SECURE!
			keyDialog.InitialDirectory = Directory.GetParent( folderPath.Text ).FullName;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -