版博士V2.0程序
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

43 linhas
1017 B

  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 AssistClient
  11. {
  12. public partial class FrmRepairInfo : Form
  13. {
  14. public string RepairInfo;
  15. public FrmRepairInfo()
  16. {
  17. InitializeComponent();
  18. }
  19. private void FrmRepairInfo_Load(object sender, EventArgs e)
  20. {
  21. this.RepairInfo = this.tbInfo.Text = "";
  22. this.btnCancel.Select();
  23. }
  24. private void btnSave_Click(object sender, EventArgs e)
  25. {
  26. this.RepairInfo = this.tbInfo.Text;
  27. this.DialogResult = DialogResult.OK;
  28. }
  29. private void btnCancel_Click(object sender, EventArgs e)
  30. {
  31. this.RepairInfo = this.tbInfo.Text;
  32. this.DialogResult= DialogResult.Cancel;
  33. }
  34. }
  35. }