using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using DevExpress.XtraEditors; using Uninpho.Tools.components.DataAnalysis; namespace Uninpho.Tools.components { public partial class SuanFaFrom : DevExpress.XtraEditors.XtraForm { public SuanFaFrom() { InitializeComponent(); } private void simpleButton1_Click(object sender, EventArgs e) { if (XZcheckBox.Checked) { DACommon.xzlcBool = true; } else { DACommon.xzlcBool = false; } if (GDSedit.SelectedItem == "高速") { DACommon.gdsBool = 0; } else if (GDSedit.SelectedItem == "普速") { DACommon.gdsBool = 1; } else { DACommon.gdsBool = 2; } this.DialogResult = DialogResult.OK; this.Close(); } public void changeLabel(bool boolstr) { XZcheckBox.Visible = boolstr; } } }