using CCWin; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace UAS_KanBan { public partial class Process : CCSkinMain { AutoSizeFormClass asc = new AutoSizeFormClass(); public Process() { InitializeComponent(); } private void Process_Load(object sender, EventArgs e) { asc.controllInitializeSize(this); Refresh.Tick += Refresh_Tick; Refresh.Interval = Setting.RefreshRate * 1000; Refresh.Start(); } private void Refresh_Tick(object sender, EventArgs e) { } private void Process_SizeChanged(object sender, EventArgs e) { asc.controlAutoSize(this); Line1.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y); Line2.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y); Line3.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y); } private void Process_FormClosing(object sender, FormClosingEventArgs e) { Refresh.Stop(); } } }