SwitchSystemValidation.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace OTSSysMgrApp
  11. {
  12. public partial class SwitchSystemValidation : Form
  13. {
  14. private bool updateFile=false;
  15. public bool GetUpdateFile()
  16. {
  17. return updateFile;
  18. }
  19. public void SetUpdateFile(bool value)
  20. {
  21. updateFile = value;
  22. }
  23. public SwitchSystemValidation()
  24. {
  25. InitializeComponent();
  26. }
  27. private void SwitchSystemValidation_Load(object sender, EventArgs e)
  28. {
  29. }
  30. private void btn_OK_Click(object sender, EventArgs e)
  31. {
  32. this.DialogResult = DialogResult.OK;
  33. this.Close();
  34. }
  35. private void cB_updatefile_CheckedChanged(object sender, EventArgs e)
  36. {
  37. SetUpdateFile(cB_updatefile.Checked);
  38. }
  39. private void btn_CANCEL_Click(object sender, EventArgs e)
  40. {
  41. this.Close();
  42. }
  43. }
  44. }