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
|
}
|
}
|