FileList.cs 785 B

1234567891011121314151617181920212223242526272829303132333435
  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 Waka.Lego.FileTool.Views
  11. {
  12. public partial class FileList : Form
  13. {
  14. public List<string> Files { get; set; }
  15. public FileList(List<string> files)
  16. {
  17. InitializeComponent();
  18. Files = files;
  19. }
  20. private void FileList_Load(object sender, EventArgs e)
  21. {
  22. Files.ForEach(x =>
  23. {
  24. listBox1.Items.Add(x);
  25. });
  26. }
  27. private void timer1_Tick(object sender, EventArgs e)
  28. {
  29. throw new Exception();
  30. }
  31. }
  32. }