천호석
2022-06-17 4de9ea98e13449174aa2cd09c8351fc0e978f44a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using System;
using System.Windows.Forms;
 
namespace SHARP_CLAS_UI
{
    public partial class uc_TacttimeTable : UserControl
    {
        #region Property
 
        #endregion
 
        #region Field
        Form_Table_Info Table_Info;
        #endregion
 
        #region Construct
        public uc_TacttimeTable()
        {
            InitializeComponent();
        }
        #endregion
 
        #region Function
        public void Init_Data(Equipment _equip, Panel_Info_Names Table_1_Name, Panel_Info_Names Table_2_Name)
        {
            Table_Info = new Form_Table_Info(_equip, Table_1_Name, Table_2_Name);
        }
 
        public void Init_Table_1_IO_Data(OutputData vacuum_sol, OutputData blow_sol, InputData vacuum_on_sensor)
        {
            Table_Info.Init_Table_1_IO_Data(vacuum_sol, blow_sol, vacuum_on_sensor);
        }
 
        public void Init_Table_2_IO_Data(OutputData vacuum_sol, OutputData blow_sol, InputData vacuum_on_sensor)
        {
            Table_Info.Init_Table_2_IO_Data(vacuum_sol, blow_sol, vacuum_on_sensor);
        }
 
        public void Init_Table_1_Scrap_Start(Func<bool> Scrap_Start)
        {
            Table_Info.Init_Table_1_Scrap_Start(Scrap_Start);
        }
 
        public void Init_Table_2_Scrap_Start(Func<bool> Scrap_Start)
        {
            Table_Info.Init_Table_2_Scrap_Start(Scrap_Start);
        }
 
        public void SetTact(double Second)
        {
            lb_Tact.Text = Second.ToString("F3");
        }
 
        public void SetTitle(string Title)
        {
            lb_Name.Text = Title;
        }
 
        public void SetWork(string Work)
        {
            lb_Work.Text = Work;
        }
 
        public void SetID(string Id)
        {
            lb_Id.Text = Id;
        }
        #endregion
 
        #region Form Function
        private void lb_Name_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (Table_Info != null)
            {
                Table_Info.TopMost = true;
                Table_Info.Show();
            }
        }
        #endregion
    }
}