ECS/frm/frmSysSetting.cs

(开头部分) 4KB

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

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


namespace ECS.frm
{
    public partial class frmSysSetting : Form
    {
        ECS.INIClass ini = new INIClass(Login.strPath4);

        public frmSysSetting()
        {
            InitializeComponent();
        }

        private void btnSet_Click(object sender, EventArgs e)
        {
            #region

            if (Login.lgUserClass.Equals("0"))
            {
                MessageBox.Show("Sorry!您无权限设置参数!");
                return;
            }

            try
            {
                foreach (Control Ctl in this.groupBox1.Controls)
                {
                    if (Ctl.GetType() != typeof(TextBox)) continue;
                    if (Ctl.Text.Trim().Equals(""))
                    {
                        MessageBox.Show("请先把参数设置完成!");
                        Ctl.Focus();
                        return;
                    }
                    if (!Other.ValidateUserInput(Ctl.Text.Trim(), 2))
                    {
                        MessageBox.Show("请输入正整数!");
                        Ctl.Focus();
                        return;
                    }

                    //ini.IniWriteValue("系统参数", Login.SysCap[Ctl.TabIndex - 1], Ctl.Text.Trim());

                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return;
            }

            MessageBox.Show("设置OK!");
后面还有 79 行代码,购买后查看完整代码

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

AI 解读 AI

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

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