Process.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using CCWin;
  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.Windows.Forms;
  10. namespace UAS_KanBan
  11. {
  12. public partial class Process : CCSkinMain
  13. {
  14. AutoSizeFormClass asc = new AutoSizeFormClass();
  15. public Process()
  16. {
  17. InitializeComponent();
  18. }
  19. private void Process_Load(object sender, EventArgs e)
  20. {
  21. asc.controllInitializeSize(this);
  22. Refresh.Tick += Refresh_Tick;
  23. Refresh.Interval = Setting.RefreshRate * 1000;
  24. Refresh.Start();
  25. }
  26. private void Refresh_Tick(object sender, EventArgs e)
  27. {
  28. }
  29. private void Process_SizeChanged(object sender, EventArgs e)
  30. {
  31. asc.controlAutoSize(this);
  32. Line1.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y);
  33. Line2.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y);
  34. Line3.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y);
  35. }
  36. private void Process_FormClosing(object sender, FormClosingEventArgs e)
  37. {
  38. Refresh.Stop();
  39. }
  40. }
  41. }