Form_menu_1_3.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace 城市天然气管道风险管理与决策系统
{
    public partial class Form_menu_1_3 : Form
    {
        public Form_menu_1_3()
        {
            InitializeComponent();
        }

        private void Form_menu_1_3_Load(object sender, EventArgs e)
        {
            textBox1.ReadOnly = true;
            textBox2.ReadOnly = true;
            textBox3.ReadOnly = true;
            textBox4.ReadOnly = true;

            textBox1.Text = GlobalData.default_pipeline.Id.ToString();
            textBox2.Text = GlobalData.default_pipeline.Name;
            textBox4.Text = GlobalData.default_pipeline.StartLocation;
            textBox3.Text = GlobalData.default_pipeline.EndLocation;

            if(GlobalData.default_pipeline.Fixs != null)
            {
                foreach (var date in GlobalData.default_pipeline.Fixs)
                {
                    listBox1.Items.Add(date.FixDate.ToString());
                }
            }
        }

        private void 新建ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DateTime date = dateTimePicker1.Value.Date;
            string level = comboBox1.Text;
            string unit = textBox6.Text;
            string person = richTextBox1.Text;
            string reason = richTextBox2.Text;
            string reamrk = richTextBox3.Text;
            string method = richTextBox4.Text;
            double price = 0;
            try
            {
                price = double.Parse(textBox7.Text);
            }
            catch (Exception)
            {
                MessageBox.Show("输入有误");
                return;
            }
            FixInfo fix = new FixInfo(date, level, unit, price, person, reason, method, reamrk);
            if (GlobalData.default_pipeline.Fixs == null) GlobalData.default_pipeline.Fixs = new List<FixInfo> { fix };
            else GlobalData.default_pipeline.Fixs.Add(fix);
            listBox1.Items.Add(date.ToString());
        }

后面还有 71 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。