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

📄 form1.cs

📁 语音视频功能 里面实现了基本的QQ与语音对话
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
using System.Xml;using System.Reflection;

namespace gowk.GXF
{
	/// <summary>
	/// Form1 的摘要说明。
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			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.SuspendLayout();
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(168, 325); 
			this.Name = "Form1";
			this.Text = "Form1";
			this.Load += new System.EventHandler(this.Form1_Load);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// 应用程序的主入口点。
		/// </summary>
		[STAThread]
		static void Main() 
		{
/*
			string xml=@"<!DOCTYPE root [<!ELEMENT root ANY> <!ELEMENT Customer EMPTY><!ATTLIST Customer id ID #REQUIRED >]><root><s/><Customer id='A111'/></root>";
			XmlDocument doc=new XmlDocument();
			doc.LoadXml(xml);
			XmlElement e=doc.GetElementById("A111");
			MessageBox.Show(e.OuterXml);*/


		//	Form1 f1=new Form1();
		//	f1.InstallFileAssociate();
		//	f1.Dispose();
		//	f1=null;
			UICreater uic=new UICreater("forms.xml");
			Form f=uic.CreateForm("mainForm");
			if(f!=null)
				Application.Run(f);
			

		//	Application.Run(new Form1());
		}


		private void Form1_Load(object sender, System.EventArgs e)
		{
			
		}
	/*	public void InstallFileAssociate()
		{
			this.GetFileAssociation().Create();
		}
		public void RemoveFileAssociate()
		{
			this.GetFileAssociation().Remove();
		}
		private FileAssociation GetFileAssociation()
		{			
			FileAssociation fa=new FileAssociation();
			fa.Extension="gowk";
			fa.ContentType="application/gowk";
			fa.FullName="gowk";
			fa.ProperName="gowk";
			fa.AddCommand("打开","\"" + Assembly.GetExecutingAssembly().Location + "\" \" %1\"");		
			fa.AddCommand("编辑", "notepad.exe %1");
			fa.IconPath = Assembly.GetExecutingAssembly().Location;
			fa.IconIndex = 0;
			return fa;
		}*/
	}
}

⌨️ 快捷键说明

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