• 大小: 145KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-14
  • 语言: C#
  • 标签: C#  交会法  

资源简介

自己的测绘专业交会法测量小程序,C#(内含前方交会与侧方交会两部分)。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 交会法测量
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender EventArgs e)
        {

        }

        private void label9_Click(object sender EventArgs e)
        {

        }

        private void label19_Click(object sender EventArgs e)
        {

        }
        //点击所有textbox内数据全部清空
        private void button2_Click(object sender EventArgs e)
        {
            this.textBox1.Clear();
            this.textBox2.Clear();
            this.textBox3.Clear();
            this.textBox4.Clear();
            this.textBox5.Clear();
            this.textBox6.Clear();
            this.textBox7.Clear();
            this.textBox8.Clear();
            this.textBox9.Clear();
            this.textBox10.Clear();
            this.textBox11.Clear();
            this.textBox12.Clear();
        }

        private void button1_Click(object sender EventArgs e)
        {
            this.textBox11.Clear();
            this.textBox12.Clear();
            double a b xpyp;
            a=Rad((textBox5.Text)(textBox6.Text)(textBox7.Text));
            b=Rad((textBox8.Text)(textBox9.Text)(textBox10.Text));
           xp=((double.Parse(textBox1.Text))*(Math.Cos(b)/Math.Sin(b))+(double.Parse(textBox3.Text))*(Math.Cos(a)/Math.Sin(a))-(double.Parse(textBox2.Text))+(double.Parse(textBox4.Text)))/((Math.Cos(a)/Math.Sin(a)+Math.Cos(b)/Math.Sin(b)));
           yp=((double.Parse(textBox2.Text))*(Math.Cos(b)/Math.Sin(b))+(double.Parse(textBox4.Text))*(Math.Cos(a)/Math.Sin(a))+(double.Parse(textBox1.Text))-(double.Parse(textBox3.Text)))/((Math.Cos(a)/Math.Sin(a)+Math.Cos(b)/Math.Sin(b)));
           this.textBox11.Text = xp.ToString();
           this.textBox12.Text = yp.ToString();


        }
        public double Rad(string x string y string z)
        {
            double r;
            r = (double.Parse(x) / 180 + double.Parse(y) / 60 / 180 + double.Parse(z) / 60 / 60 / 180) * Math.PI;
            return r;
        }

        private void groupBox2_Enter(object sender EventArgs e)
        {

        }

        private void label38_Click(object sender EventArgs e)
        {

        }

        private void button4_Click(object sender EventArgs e)
        {
            this.textBox13.Clear();
            this.textBox14.Clear();
            this.textBox15.Clear();
            this.textBox16.Clear();
            this.textBox17.Clear();
            this.textBox18.Clear();
            this.textBox19.Clear();
            this.textBox20.Clear();
            this.textBox21.Clear();
            this.textBox22.Clear();
            this.te

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-05-26 11:17  交会法测量\
     文件         935  2019-05-26 11:17  交会法测量\交会法测量.sln
     目录           0  2019-05-26 11:18  交会法测量\交会法测量\
     文件         187  2019-05-26 11:17  交会法测量\交会法测量\App.config
     目录           0  2019-05-26 11:17  交会法测量\交会法测量\bin\
     目录           0  2019-05-26 12:49  交会法测量\交会法测量\bin\Debug\
     文件       45568  2019-05-26 15:07  交会法测量\交会法测量\bin\Debug\交会法测量.exe
     文件         187  2019-05-26 11:17  交会法测量\交会法测量\bin\Debug\交会法测量.exe.config
     文件       34304  2019-05-26 15:07  交会法测量\交会法测量\bin\Debug\交会法测量.pdb
     文件       22984  2019-05-26 15:07  交会法测量\交会法测量\bin\Debug\交会法测量.vshost.exe
     文件         187  2019-05-26 11:17  交会法测量\交会法测量\bin\Debug\交会法测量.vshost.exe.config
     文件         490  2018-04-12 07:35  交会法测量\交会法测量\bin\Debug\交会法测量.vshost.exe.manifest
     文件        4392  2019-05-26 15:07  交会法测量\交会法测量\Form1.cs
     文件       52694  2019-05-26 15:07  交会法测量\交会法测量\Form1.Designer.cs
     文件       34209  2019-05-26 15:07  交会法测量\交会法测量\Form1.resx
     目录           0  2019-05-26 11:17  交会法测量\交会法测量\obj\
     目录           0  2019-05-26 15:07  交会法测量\交会法测量\obj\Debug\
     文件        1308  2019-05-26 12:55  交会法测量\交会法测量\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6959  2019-05-26 11:18  交会法测量\交会法测量\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件           0  2019-05-26 11:17  交会法测量\交会法测量\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
     文件           0  2019-05-26 11:17  交会法测量\交会法测量\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
     文件           0  2019-05-26 11:17  交会法测量\交会法测量\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
     目录           0  2019-05-26 11:17  交会法测量\交会法测量\obj\Debug\TempPE\
     文件         735  2019-05-26 15:07  交会法测量\交会法测量\obj\Debug\交会法测量.csproj.FileListAbsolute.txt
     文件         975  2019-05-26 15:07  交会法测量\交会法测量\obj\Debug\交会法测量.csproj.GenerateResource.Cache
     文件        2209  2019-05-26 12:49  交会法测量\交会法测量\obj\Debug\交会法测量.csprojResolveAssemblyReference.cache
     文件       45568  2019-05-26 15:07  交会法测量\交会法测量\obj\Debug\交会法测量.exe
     文件       19303  2019-05-26 15:07  交会法测量\交会法测量\obj\Debug\交会法测量.Form1.resources
     文件       34304  2019-05-26 15:07  交会法测量\交会法测量\obj\Debug\交会法测量.pdb
     文件         180  2019-05-26 12:49  交会法测量\交会法测量\obj\Debug\交会法测量.Properties.Resources.resources
     文件         527  2019-05-26 11:17  交会法测量\交会法测量\Program.cs
............此处省略7个文件信息

评论

共有 条评论