|
@@ -10,7 +10,7 @@ using System.Windows.Forms;
|
|
|
|
|
|
|
|
namespace UAS_KanBan
|
|
namespace UAS_KanBan
|
|
|
{
|
|
{
|
|
|
- public partial class Process : CCSkinMain
|
|
|
|
|
|
|
+ public partial class Process : BaseForm
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
AutoSizeFormClass asc = new AutoSizeFormClass();
|
|
AutoSizeFormClass asc = new AutoSizeFormClass();
|
|
@@ -37,7 +37,7 @@ namespace UAS_KanBan
|
|
|
Refresh.Tick += Refresh_Tick;
|
|
Refresh.Tick += Refresh_Tick;
|
|
|
Refresh.Interval = Setting.RefreshRate * 1000;
|
|
Refresh.Interval = Setting.RefreshRate * 1000;
|
|
|
Refresh.Start();
|
|
Refresh.Start();
|
|
|
- Width = Width + 1;
|
|
|
|
|
|
|
+ WindowState = FormWindowState.Maximized;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void Refresh_Tick(object sender, EventArgs e)
|
|
private void Refresh_Tick(object sender, EventArgs e)
|
|
@@ -73,7 +73,7 @@ namespace UAS_KanBan
|
|
|
Title.Location = new Point(Line1.Location.X + (Line2.Location.X - Line1.Location.X - Title.Size.Width) / 2, TopLine.Location.Y + (BottomLine.Location.Y - TopLine.Location.Y - Title.Size.Height) / 2);
|
|
Title.Location = new Point(Line1.Location.X + (Line2.Location.X - Line1.Location.X - Title.Size.Width) / 2, TopLine.Location.Y + (BottomLine.Location.Y - TopLine.Location.Y - Title.Size.Height) / 2);
|
|
|
Title2.Location = new Point(Title.Location.X, Title2.Location.Y);
|
|
Title2.Location = new Point(Title.Location.X, Title2.Location.Y);
|
|
|
Logo.Size = new Size(Line1.Location.X - 20, BottomLine.Location.Y - TopLine.Location.Y - 20);
|
|
Logo.Size = new Size(Line1.Location.X - 20, BottomLine.Location.Y - TopLine.Location.Y - 20);
|
|
|
- WorkShift_label.Location = new Point(Line2.Location.X + (Line3.Location.X - Line2.Location.X - WorkShift_label.Size.Width) / 2, MidLine.Location.Y+(BottomLine.Location.Y-MidLine.Location.Y- WorkShift_label.Size.Height) /2);
|
|
|
|
|
|
|
+ WorkShift_label.Location = new Point(Line2.Location.X + (Line3.Location.X - Line2.Location.X - WorkShift_label.Size.Width) / 2, MidLine.Location.Y + (BottomLine.Location.Y - MidLine.Location.Y - WorkShift_label.Size.Height) / 2);
|
|
|
LineCode_label.Location = new Point(Line2.Location.X + (Line3.Location.X - Line2.Location.X - LineCode_label.Size.Width) / 2, TopLine.Location.Y + (MidLine.Location.Y - TopLine.Location.Y - LineCode_label.Size.Height) / 2);
|
|
LineCode_label.Location = new Point(Line2.Location.X + (Line3.Location.X - Line2.Location.X - LineCode_label.Size.Width) / 2, TopLine.Location.Y + (MidLine.Location.Y - TopLine.Location.Y - LineCode_label.Size.Height) / 2);
|
|
|
Line.Location = new Point(Line.Location.X, TopLine.Location.Y + (MidLine.Location.Y - TopLine.Location.Y - LineCode_label.Size.Height) / 2);
|
|
Line.Location = new Point(Line.Location.X, TopLine.Location.Y + (MidLine.Location.Y - TopLine.Location.Y - LineCode_label.Size.Height) / 2);
|
|
|
班制.Location = new Point(班制.Location.X, MidLine.Location.Y + (BottomLine.Location.Y - MidLine.Location.Y - WorkShift_label.Size.Height) / 2);
|
|
班制.Location = new Point(班制.Location.X, MidLine.Location.Y + (BottomLine.Location.Y - MidLine.Location.Y - WorkShift_label.Size.Height) / 2);
|
|
@@ -83,5 +83,16 @@ namespace UAS_KanBan
|
|
|
{
|
|
{
|
|
|
Refresh.Stop();
|
|
Refresh.Stop();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ private void Process_KeyDown(object sender, KeyEventArgs e)
|
|
|
|
|
+ {
|
|
|
|
|
+ if (e.KeyCode == Keys.Escape)
|
|
|
|
|
+ {
|
|
|
|
|
+ Hide();
|
|
|
|
|
+ Setting set = new Setting();
|
|
|
|
|
+ set.ShowDialog();
|
|
|
|
|
+ Close();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|