• 大小: 67KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-16
  • 语言: C#
  • 标签: C#  

资源简介

任意设站极坐标法曲线测设程序,采用C#语言编写。

资源截图

代码片段和文件信息

using System;
using System.Windows.Forms;
using System.Collections;
using System.IO;

namespace 曲线测设
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        QXCS qxcs = new QXCS();
        ArrayList Lilist = new ArrayList();//保存i点的里程
       
        private void cbCZ_CheckedChanged(object sender EventArgs e)
        {
            if (cbCZ.Checked)
            {
                txtCZx.Enabled = false;
                txtCZy.Enabled = false;
            }
            else
            {
                txtCZx.Enabled = true;
                txtCZy.Enabled = true;
            }
        }

        private void cbHS_CheckedChanged(object sender EventArgs e)
        {
            if (cbHS.Checked)
            {
                txtHSx.Enabled = false;
                txtHSy.Enabled = false;
            }
            else
            {
                txtHSx.Enabled = true;
                txtHSy.Enabled = true;
            }
        }

        private void cbZHJ_CheckedChanged(object sender EventArgs e)
        {
            if (cbZHJ.Checked)
            {
                cboxZZJ.Enabled = true;
                txtCSD.Enabled = false;
            }
            else
            {
                cboxZZJ.Enabled = false;
                txtCSD.Enabled = true;
            }
        }

        private void btnCa_Click(object sender EventArgs e)
        {
            #region 读取数据
            try
            {
                qxcs.alpha = DFM_HD(txtRad.Text.Trim());
                qxcs.r = double.Parse(txtRadius.Text.Trim());
                qxcs.lo = double.Parse(txtLength.Text.Trim());
                qxcs.JD = double.Parse(txtMileage.Text.Trim());
                if (rbtnLeft.Checked)
                {
                    qxcs.cc = -1;
                }
                else
                {
                    qxcs.cc = 1;
                }
                qxcs.ZHx = double.Parse(txtZHx.Text.Trim());
                qxcs.ZHy = double.Parse(txtZHy.Text.Trim());
                qxcs.JDx = double.Parse(txtJDx.Text.Trim());
                qxcs.JDy = double.Parse(txtJDy.Text.Trim());
                qxcs.d = double.Parse(txtBZJ.Text.Trim());

                if (cbCZ.Checked)
                {
                    qxcs.CZx = double.Parse(txtZHx.Text.Trim());
                    qxcs.CZy = double.Parse(txtZHy.Text.Trim());
                }
                else
                {
                    qxcs.CZx = double.Parse(txtCZx.Text.Trim());
                    qxcs.CZy = double.Parse(txtCZy.Text.Trim());
                }
                if (cbHS.Checked)
                {
                    qxcs.HSx = double.Parse(txtJDx.Text.Trim());
                    qxcs.HSy = double.Parse(txtJDy.Text.Trim());
                }
                else
                {
                    qxcs.

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-06-15 00:05  曲线测设程序\
     目录           0  2010-06-15 00:15  曲线测设程序\曲线测设\
     文件         926  2010-05-14 16:58  曲线测设程序\曲线测设.sln
     文件       17408  2010-06-15 00:17  曲线测设程序\曲线测设.suo
     目录           0  2010-06-15 00:03  曲线测设程序\曲线测设\bin\
     目录           0  2010-06-15 00:03  曲线测设程序\曲线测设\bin\Debug\
     文件       25600  2010-06-15 00:15  曲线测设程序\曲线测设\bin\Debug\曲线测设.exe
     文件       40448  2010-06-15 00:15  曲线测设程序\曲线测设\bin\Debug\曲线测设.pdb
     文件       14328  2010-06-15 00:17  曲线测设程序\曲线测设\bin\Debug\曲线测设.vshost.exe
     文件         490  2007-07-21 01:33  曲线测设程序\曲线测设\bin\Debug\曲线测设.vshost.exe.manifest
     文件        7478  2010-06-15 00:15  曲线测设程序\曲线测设\Form1.cs
     文件       33485  2010-06-15 00:11  曲线测设程序\曲线测设\Form1.Designer.cs
     文件        6010  2010-06-15 00:11  曲线测设程序\曲线测设\Form1.resx
     目录           0  2010-06-15 00:03  曲线测设程序\曲线测设\obj\
     目录           0  2010-06-15 00:15  曲线测设程序\曲线测设\obj\Debug\
     目录           0  2010-06-15 00:03  曲线测设程序\曲线测设\obj\Debug\Refactor\
     目录           0  2010-06-15 00:03  曲线测设程序\曲线测设\obj\Debug\TempPE\
     文件        1670  2010-06-15 00:17  曲线测设程序\曲线测设\obj\Debug\曲线测设.csproj.FileListAbsolute.txt
     文件         847  2010-06-15 00:11  曲线测设程序\曲线测设\obj\Debug\曲线测设.csproj.GenerateResource.Cache
     文件       25600  2010-06-15 00:15  曲线测设程序\曲线测设\obj\Debug\曲线测设.exe
     文件         180  2010-06-15 00:11  曲线测设程序\曲线测设\obj\Debug\曲线测设.Form1.resources
     文件       40448  2010-06-15 00:15  曲线测设程序\曲线测设\obj\Debug\曲线测设.pdb
     文件         180  2010-06-15 00:01  曲线测设程序\曲线测设\obj\Debug\曲线测设.Properties.Resources.resources
     文件         493  2010-05-14 16:58  曲线测设程序\曲线测设\Program.cs
     目录           0  2010-06-15 00:03  曲线测设程序\曲线测设\Properties\
     文件        1380  2010-05-14 16:58  曲线测设程序\曲线测设\Properties\AssemblyInfo.cs
     文件        2874  2010-05-14 16:58  曲线测设程序\曲线测设\Properties\Resources.Designer.cs
     文件        5612  2010-05-14 16:58  曲线测设程序\曲线测设\Properties\Resources.resx
     文件        1097  2010-05-14 16:58  曲线测设程序\曲线测设\Properties\Settings.Designer.cs
     文件         249  2010-05-14 16:58  曲线测设程序\曲线测设\Properties\Settings.settings
     文件        6372  2010-06-14 23:56  曲线测设程序\曲线测设\QXCS.cs
............此处省略2个文件信息

评论

共有 条评论