使用c#语言编写一个windows窗体应用程序,包括简单的程序界面,能够实现测角交会定点计算,包括: 前方交会 、 后方交会 、 侧方交会 、 距离交会

时间: 2024-01-24 11:17:03 浏览: 19
以下是一个简单的用于测角交会定点计算的 Windows 窗体应用程序示例,它包括前方交会、后方交会、侧方交会和距离交会: ```csharp using System; using System.Drawing; using System.Windows.Forms; namespace AngleIntersection { public partial class MainForm : Form { private TextBox textBox1; private Label label1; private Label label2; private TextBox textBox2; private Label label3; private TextBox textBox3; private Label label4; private TextBox textBox4; private Label label5; private TextBox textBox5; private Label label6; private TextBox textBox6; private Label label7; private TextBox textBox7; private Label label8; private TextBox textBox8; private Button button1; private Label label9; private TextBox textBox9; private Label label10; private TextBox textBox10; private Label label11; private TextBox textBox11; private Label label12; private TextBox textBox12; private Label label13; private TextBox textBox13; private Label label14; private TextBox textBox14; private Button button2; private Label label15; private TextBox textBox15; private Label label16; private TextBox textBox16; private Label label17; private TextBox textBox17; private Label label18; private TextBox textBox18; private Button button3; private Label label19; private TextBox textBox19; private Label label20; private TextBox textBox20; private Label label21; private TextBox textBox21; private Label label22; private TextBox textBox22; private Button button4; public MainForm() { InitializeComponent(); } private void InitializeComponent() { this.textBox1 = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.textBox2 = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.textBox3 = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.textBox4 = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.textBox5 = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); this.textBox6 = new System.Windows.Forms.TextBox(); this.label7 = new System.Windows.Forms.Label(); this.textBox7 = new System.Windows.Forms.TextBox(); this.label8 = new System.Windows.Forms.Label(); this.textBox8 = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.label9 = new System.Windows.Forms.Label(); this.textBox9 = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); this.textBox10 = new System.Windows.Forms.TextBox(); this.label11 = new System.Windows.Forms.Label(); this.textBox11 = new System.Windows.Forms.TextBox(); this.label12 = new System.Windows.Forms.Label(); this.textBox12 = new System.Windows.Forms.TextBox(); this.label13 = new System.Windows.Forms.Label(); this.textBox13 = new System.Windows.Forms.TextBox(); this.label14 = new System.Windows.Forms.Label(); this.textBox14 = new System.Windows.Forms.TextBox(); this.button2 = new System.Windows.Forms.Button(); this.label15 = new System.Windows.Forms.Label(); this.textBox15 = new System.Windows.Forms.TextBox(); this.label16 = new System.Windows.Forms.Label(); this.textBox16 = new System.Windows.Forms.TextBox(); this.label17 = new System.Windows.Forms.Label(); this.textBox17 = new System.Windows.Forms.TextBox(); this.label18 = new System.Windows.Forms.Label(); this.textBox18 = new System.Windows.Forms.TextBox(); this.button3 = new System.Windows.Forms.Button(); this.label19 = new System.Windows.Forms.Label(); this.textBox19 = new System.Windows.Forms.TextBox(); this.label20 = new System.Windows.Forms.Label(); this.textBox20 = new System.Windows.Forms.TextBox(); this.label21 = new System.Windows.Forms.Label(); this.textBox21 = new System.Windows.Forms.TextBox(); this.label22 = new System.Windows.Forms.Label(); this.textBox22 = new System.Windows.Forms.TextBox(); this.button4 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // textBox1 // this.textBox1.Location = new System.Drawing.Point(96, 26); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(100, 20); this.textBox1.TabIndex = 0; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(12, 29); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(78, 13); this.label1.TabIndex = 1; this.label1.Text = "已知点坐标:"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(12, 55); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(78, 13); this.label2.TabIndex = 3; this.label2.Text = "已知点坐标:"; // // textBox2 // this.textBox2.Location = new System.Drawing.Point(96, 52); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(100, 20); this.textBox2.TabIndex = 2; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(12, 81); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(78, 13); this.label3.TabIndex = 5; this.label3.Text = "已知点坐标:"; // // textBox3 // this.textBox3.Location = new System.Drawing.Point(96, 78); this.textBox3.Name = "textBox3"; this.textBox3.Size = new System.Drawing.Size(100, 20); this.textBox3.TabIndex = 4; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(12, 107); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(78, 13); this.label4.TabIndex = 7; this.label4.Text = "已知距离角:"; // // textBox4 // this.textBox4.Location = new System.Drawing.Point(96, 104); this.textBox4.Name = "textBox4"; this.textBox4.Size = new System.Drawing.Size(100, 20); this.textBox4.TabIndex = 6; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(12, 133); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(78, 13); this.label5.TabIndex = 9; this.label5.Text = "已知距离角:"; // // textBox5 // this.textBox5.Location = new System.Drawing.Point(96, 130); this.textBox5.Name = "textBox5"; this.textBox5.Size = new System.Drawing.Size(100, 20); this.textBox5.TabIndex = 8; // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(12, 159); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(78, 13); this.label6.TabIndex = 11; this.label6.Text = "已知距离角:"; // // textBox6 // this.textBox6.Location = new System.Drawing.Point(96, 156); this.textBox6.Name = "textBox6"; this.textBox6.Size = new System.Drawing.Size(100, 20); this.textBox6.TabIndex = 10; // // label7 // this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(12, 185); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(78, 13); this.label7.TabIndex = 13; this.label7.Text = "已知距离角:"; // // textBox7 // this.textBox7.Location = new System.Drawing.Point(96, 182); this.textBox7.Name = "textBox7"; this.textBox7.Size = new System.Drawing.Size(100, 20); this.textBox7.TabIndex = 12; // // label8 // this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(12, 211); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(78, 13); this.label8.TabIndex = 15; this.label8.Text = "已知距离角:"; // // textBox8 // this.textBox8.Location = new System.Drawing.Point(96, 208); this.textBox8.Name = "textBox8"; this.textBox8.Size = new System.Drawing.Size(100, 20); this.textBox8.TabIndex = 14; // // button1 // this.button1.Location = new System.Drawing.Point(15, 246); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 16; this.button1.Text = "前方交会"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // label9 // this.label9.AutoSize = true; this.label9.Location = new System.Drawing.Point(227, 29); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(78, 13); this.label9.TabIndex = 18; this.label9.Text = "已知点坐标:"; // // textBox9 // this.textBox9.Location = new System.Drawing.Point(311, 26); this.textBox9.Name = "textBox9"; this.textBox9.Size = new System.Drawing.Size(100, 20); this.textBox9.TabIndex = 17; // // label10 // this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(227, 55); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(78, 13); this.label10.TabIndex = 20; this.label10.Text = "已知点坐标:"; // // textBox10 // this.textBox10.Location = new System.Drawing.Point(311, 52); this.textBox10.Name = "textBox10"; this.textBox10.Size = new System.Drawing.Size(100, 20); this.textBox10.TabIndex = 19; // // label11 // this.label11.AutoSize = true; this.label11.Location = new System.Drawing.Point(227, 81); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(78, 13); this.label11.TabIndex = 22; this.label11.Text = "已知点坐标:"; // // textBox11 // this.textBox11.Location = new System.Drawing.Point(311, 78); this.textBox11.Name = "textBox11"; this.textBox11.Size = new System.Drawing.Size(100, 20); this.textBox11.TabIndex = 21; // // label12 // this.label12.AutoSize = true; this.label12.Location = new System.Drawing.Point(227, 107); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(78, 13); this.label12.TabIndex = 24; this.label12.Text = "已知距离角:"; // // textBox12 // this.textBox12.Location = new System.Drawing.Point(311, 104); this.textBox12.Name = "textBox12"; this.textBox12.Size = new System.Drawing.Size(100, 20); this.textBox12.TabIndex = 23; // // label13 // this.label13.AutoSize = true; this.label13.Location = new System.Drawing.Point(227, 133); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(78, 13); this.label13.TabIndex = 26; this.label13.Text = "已知距离角:"; // // textBox13 // this.textBox13.Location = new System.Drawing.Point(311, 130); this.textBox13.Name = "textBox13"; this.textBox13.Size = new System.Drawing.Size(100, 20); this.textBox13.TabIndex = 25; // // label14 // this.label14.AutoSize = true; this.label14.Location = new System.Drawing.Point(227, 159); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(78, 13); this.label14.TabIndex = 28; this.label14.Text = "已知距离角:"; // // textBox14 // this.textBox14.Location = new System.Drawing.Point(311, 156); this.textBox14.Name = "textBox14"; this.textBox14.Size = new System.Drawing.Size(100, 20); this.textBox14.TabIndex = 27; // // button2 // this.button2.Location = new System.Drawing.Point(230, 246); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(75, 23); this.button2.TabIndex = 29; this.button2.Text = "后方交会"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // label15 // this.label15.AutoSize = true; this.label15.Location = new System.Drawing.Point(444, 29); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(78, 13); this.label15.TabIndex = 31; this.label15.Text = "已知点坐标:"; // // textBox15 // this.textBox15.Location = new System.Drawing.Point(528, 26); this.textBox15.Name = "textBox15"; this.textBox15.Size = new System.Drawing.Size(100, 20); this.textBox15.TabIndex = 30; // // label16 // this.label16.AutoSize = true; this.label16.Location = new System.Drawing.Point(444, 55); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(78, 13); this.label16.TabIndex = 33; this.label16.Text = "已知点坐标:"; // // textBox16 // this.textBox16.Location = new System.Drawing.Point(528, 52); this.textBox16.Name = "textBox16"; this.textBox16.Size = new System.Drawing.Size(100, 20); this.textBox16.TabIndex = 32; // // label17 // this.label17.AutoSize = true; this.label17.Location = new System.Drawing.Point(444, 81); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(78, 13); this.label17.TabIndex = 35; this.label17.Text = "已知距离角:"; // // textBox17 // this.textBox17.Location = new System.Drawing.Point(528, 78); this.textBox17.Name = "textBox17"; this.textBox17.Size = new System.Drawing.Size(100, 20); this.textBox17.TabIndex = 34; // // label18 // this.label18.AutoSize = true; this.label18.Location = new System.Drawing.Point(444, 107); this.label18.Name = "label18"; this.label18.Size = new System.Drawing.Size(78, 13); this.label18.TabIndex = 37; this.label18.Text = "已知距离角:"; // // textBox18 // this.textBox18.Location = new System.Drawing.Point(528, 104); this.textBox18.Name = "textBox18"; this.textBox18.Size = new System.Drawing.Size(100, 20); this.textBox18.TabIndex = 36; // // button3 // this.button3.Location = new System.Drawing.Point(447, 246); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(75, 23); this.button3.TabIndex = 38; this.button3.Text = "侧方交会"; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // // label19 // this.label19.AutoSize = true; this.label19.Location = new System.Drawing.Point(227, 185); this.label19.Name = "label19"; this.label19.Size = new System.Drawing.Size(78, 13); this.label19.TabIndex = 40; this.label19.Text = "已知距离角:"; //

相关推荐

最新推荐

recommend-type

利用MUSIC算法实现基于圆阵的二维测角

空间谱估计是阵列信号处理最主要的两个研究方向之一,在过去三十年得到了蓬勃发现,理论日趋成熟。而MUSIC算法又是空间谱估计中最为经典的算法,为许多工程...在此基础上,形成了对MUSIC算法的一个比较系统的性能评估。
recommend-type

zigbee-cluster-library-specification

最新的zigbee-cluster-library-specification说明文档。
recommend-type

管理建模和仿真的文件

管理Boualem Benatallah引用此版本:布阿利姆·贝纳塔拉。管理建模和仿真。约瑟夫-傅立叶大学-格勒诺布尔第一大学,1996年。法语。NNT:电话:00345357HAL ID:电话:00345357https://theses.hal.science/tel-003453572008年12月9日提交HAL是一个多学科的开放存取档案馆,用于存放和传播科学研究论文,无论它们是否被公开。论文可以来自法国或国外的教学和研究机构,也可以来自公共或私人研究中心。L’archive ouverte pluridisciplinaire
recommend-type

MATLAB柱状图在信号处理中的应用:可视化信号特征和频谱分析

![matlab画柱状图](https://img-blog.csdnimg.cn/3f32348f1c9c4481a6f5931993732f97.png) # 1. MATLAB柱状图概述** MATLAB柱状图是一种图形化工具,用于可视化数据中不同类别或组的分布情况。它通过绘制垂直条形来表示每个类别或组中的数据值。柱状图在信号处理中广泛用于可视化信号特征和进行频谱分析。 柱状图的优点在于其简单易懂,能够直观地展示数据分布。在信号处理中,柱状图可以帮助工程师识别信号中的模式、趋势和异常情况,从而为信号分析和处理提供有价值的见解。 # 2. 柱状图在信号处理中的应用 柱状图在信号处理
recommend-type

hive中 的Metastore

Hive中的Metastore是一个关键的组件,它用于存储和管理Hive中的元数据。这些元数据包括表名、列名、表的数据类型、分区信息、表的存储位置等信息。Hive的查询和分析都需要Metastore来管理和访问这些元数据。 Metastore可以使用不同的后端存储来存储元数据,例如MySQL、PostgreSQL、Oracle等关系型数据库,或者Hadoop分布式文件系统中的HDFS。Metastore还提供了API,使得开发人员可以通过编程方式访问元数据。 Metastore的另一个重要功能是跟踪表的版本和历史。当用户对表进行更改时,Metastore会记录这些更改,并且可以让用户回滚到
recommend-type

JSBSim Reference Manual

JSBSim参考手册,其中包含JSBSim简介,JSBSim配置文件xml的编写语法,编程手册以及一些应用实例等。其中有部分内容还没有写完,估计有生之年很难看到完整版了,但是内容还是很有参考价值的。
recommend-type

"互动学习:行动中的多样性与论文攻读经历"

多样性她- 事实上SCI NCES你的时间表ECOLEDO C Tora SC和NCESPOUR l’Ingén学习互动,互动学习以行动为中心的强化学习学会互动,互动学习,以行动为中心的强化学习计算机科学博士论文于2021年9月28日在Villeneuve d'Asq公开支持马修·瑟林评审团主席法布里斯·勒菲弗尔阿维尼翁大学教授论文指导奥利维尔·皮耶昆谷歌研究教授:智囊团论文联合主任菲利普·普雷教授,大学。里尔/CRISTAL/因里亚报告员奥利维耶·西格德索邦大学报告员卢多维奇·德诺耶教授,Facebook /索邦大学审查员越南圣迈IMT Atlantic高级讲师邀请弗洛里安·斯特鲁布博士,Deepmind对于那些及时看到自己错误的人...3谢谢你首先,我要感谢我的两位博士生导师Olivier和Philippe。奥利维尔,"站在巨人的肩膀上"这句话对你来说完全有意义了。从科学上讲,你知道在这篇论文的(许多)错误中,你是我可以依
recommend-type

MATLAB柱状图在数据分析中的作用:从可视化到洞察

![MATLAB柱状图在数据分析中的作用:从可视化到洞察](https://img-blog.csdnimg.cn/img_convert/1a36558cefc0339f7836cca7680c0aef.png) # 1. MATLAB柱状图概述** 柱状图是一种广泛用于数据可视化的图表类型,它使用垂直条形来表示数据中不同类别或组别的值。在MATLAB中,柱状图通过`bar`函数创建,该函数接受数据向量或矩阵作为输入,并生成相应的高度条形。 柱状图的优点在于其简单性和易于理解性。它们可以快速有效地传达数据分布和组别之间的比较。此外,MATLAB提供了广泛的定制选项,允许用户调整条形颜色、
recommend-type

软件工程每个学期的生活及学习目标

软件工程每个学期的生活及学习目标可能包括以下内容: 1. 学习软件开发的基本理论和实践知识,掌握常用的编程语言和开发工具。 2. 熟悉软件开发的流程和方法,了解软件工程的标准和规范。 3. 掌握软件需求分析、设计、开发、测试、部署和维护的技能,能够独立完成简单的软件开发任务。 4. 培养团队合作的能力,学会与他人进行有效的沟通和协作,共同完成软件开发项目。 5. 提高自己的计算机技术水平,了解最新的软件开发技术和趋势,积极参与开源社区和技术交流活动。 6. 注重学习方法和习惯的培养,养成良好的学习和生活习惯,保持健康的身心状态。 7. 积极参加校内外的实践活动和比赛,拓展自己的视
recommend-type

c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf

校园超市商品信息管理系统课程设计旨在帮助学生深入理解程序设计的基础知识,同时锻炼他们的实际操作能力。通过设计和实现一个校园超市商品信息管理系统,学生掌握了如何利用计算机科学与技术知识解决实际问题的能力。在课程设计过程中,学生需要对超市商品和销售员的关系进行有效管理,使系统功能更全面、实用,从而提高用户体验和便利性。 学生在课程设计过程中展现了积极的学习态度和纪律,没有缺勤情况,演示过程流畅且作品具有很强的使用价值。设计报告完整详细,展现了对问题的深入思考和解决能力。在答辩环节中,学生能够自信地回答问题,展示出扎实的专业知识和逻辑思维能力。教师对学生的表现予以肯定,认为学生在课程设计中表现出色,值得称赞。 整个课程设计过程包括平时成绩、报告成绩和演示与答辩成绩三个部分,其中平时表现占比20%,报告成绩占比40%,演示与答辩成绩占比40%。通过这三个部分的综合评定,最终为学生总成绩提供参考。总评分以百分制计算,全面评估学生在课程设计中的各项表现,最终为学生提供综合评价和反馈意见。 通过校园超市商品信息管理系统课程设计,学生不仅提升了对程序设计基础知识的理解与应用能力,同时也增强了团队协作和沟通能力。这一过程旨在培养学生综合运用技术解决问题的能力,为其未来的专业发展打下坚实基础。学生在进行校园超市商品信息管理系统课程设计过程中,不仅获得了理论知识的提升,同时也锻炼了实践能力和创新思维,为其未来的职业发展奠定了坚实基础。 校园超市商品信息管理系统课程设计的目的在于促进学生对程序设计基础知识的深入理解与掌握,同时培养学生解决实际问题的能力。通过对系统功能和用户需求的全面考量,学生设计了一个实用、高效的校园超市商品信息管理系统,为用户提供了更便捷、更高效的管理和使用体验。 综上所述,校园超市商品信息管理系统课程设计是一项旨在提升学生综合能力和实践技能的重要教学活动。通过此次设计,学生不仅深化了对程序设计基础知识的理解,还培养了解决实际问题的能力和团队合作精神。这一过程将为学生未来的专业发展提供坚实基础,使其在实际工作中能够胜任更多挑战。