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.

45 line
987 B

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