using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using System.Windows.Forms;
|
using log4net;
|
using log4net.Appender;
|
using log4net.Layout;
|
using log4net.Repository.Hierarchy;
|
|
namespace SHARP_CLAS_UI
|
{
|
public partial class Interlock_View : Form
|
{
|
#region Property
|
public string Interlock_Message
|
{
|
get
|
{
|
return lb_Interlock_Message.Text;
|
}
|
set
|
{
|
lb_Interlock_Message.Text = value;
|
}
|
}
|
|
public string Interlock_Discription
|
{
|
get
|
{
|
return lb_Interlock_Discription.Text;
|
}
|
set
|
{
|
lb_Interlock_Discription.Text = value;
|
}
|
}
|
|
#endregion
|
|
#region Field
|
Form_Frame _Parent;
|
#endregion
|
|
public Interlock_View(Form_Frame _Parent)
|
{
|
InitializeComponent();
|
|
this._Parent = _Parent;
|
}
|
|
private void btn_Check_Click(object sender, EventArgs e)
|
{
|
_Parent._equip.Board_Control.IO_manager.Set_Output(OutputData.Buzzer_1_Relay, false);
|
this.Hide();
|
}
|
|
private void Interlock_View_FormClosing(object sender, FormClosingEventArgs e)
|
{
|
if (!_Parent.IsDisposed)
|
{
|
e.Cancel = true;
|
|
this.Hide();
|
}
|
}
|
}
|
|
public struct Interlock_Msg
|
{
|
public string Interlock_Message { get; set; }
|
public string Interlock_Discription { get; set; }
|
}
|
|
public class Interlock_Manager
|
{
|
public static Queue<Interlock_Msg> Interlock_Msgs = new Queue<Interlock_Msg>();
|
|
public static void Add_Interlock_Msg(string Interlock_Message, string Interlock_Discription = "")
|
{
|
Interlock_Msgs.Enqueue(new Interlock_Msg { Interlock_Message = Interlock_Message, Interlock_Discription = Interlock_Discription });
|
}
|
}
|
}
|