MainForm.cs 885 B

123456789101112131415161718192021222324252627282930313233343536
  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 PTMedicalInsurance.Forms.SettlementWithNopwdApplys
  11. {
  12. public partial class MainForm : Form
  13. {
  14. public MainForm()
  15. {
  16. InitializeComponent();
  17. //初始化界面
  18. InitForm();
  19. //添加上传
  20. AddForm(this.tpApply, new SettlementWithNopwdApply(this));
  21. }
  22. private void InitForm()
  23. {
  24. this.StartPosition = FormStartPosition.CenterParent;
  25. this.WindowState = FormWindowState.Maximized;
  26. }
  27. private void AddForm(TabPage tabpage, Form frm)
  28. {
  29. tabpage.Controls.Add(frm);
  30. frm.Show();
  31. }
  32. }
  33. }