You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
869 B

  1. using HKLib.Logic;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. namespace HKCardManager
  12. {
  13. public partial class PersonnelEntry : Form
  14. {
  15. List<string> OrgList = new List<string>();
  16. public PersonnelEntry()
  17. {
  18. InitializeComponent();
  19. comboBox1.SelectedIndex = 0;
  20. ServiceHandler.GetOrgList()?.ForEach(item =>
  21. {
  22. OrgList.Add(item.Name);
  23. });
  24. comboBox2.DataSource = OrgList;
  25. }
  26. private void button1_Click(object sender, EventArgs e)
  27. {
  28. this.Close();
  29. }
  30. private void button2_Click(object sender, EventArgs e)
  31. {
  32. }
  33. }
  34. }