SuanFaFrom.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Linq;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using DevExpress.XtraEditors;
  11. using Uninpho.Tools.components.DataAnalysis;
  12. namespace Uninpho.Tools.components
  13. {
  14. public partial class SuanFaFrom : DevExpress.XtraEditors.XtraForm
  15. {
  16. public SuanFaFrom()
  17. {
  18. InitializeComponent();
  19. }
  20. private void simpleButton1_Click(object sender, EventArgs e)
  21. {
  22. if (XZcheckBox.Checked)
  23. {
  24. DACommon.xzlcBool = true;
  25. }
  26. else
  27. {
  28. DACommon.xzlcBool = false;
  29. }
  30. if (GDSedit.SelectedItem == "高速")
  31. {
  32. DACommon.gdsBool = 0;
  33. }
  34. else if (GDSedit.SelectedItem == "普速")
  35. {
  36. DACommon.gdsBool = 1;
  37. }
  38. else
  39. {
  40. DACommon.gdsBool = 2;
  41. }
  42. this.DialogResult = DialogResult.OK;
  43. this.Close();
  44. }
  45. public void changeLabel(bool boolstr)
  46. {
  47. XZcheckBox.Visible = boolstr;
  48. }
  49. }
  50. }