using System; using System.Windows.Forms; using SA_LTT.UserInfo; using SA_LTT_UI.Viewer; using SA_LTT; namespace SA_LTT_UI.Screen { public partial class ScreenMaintenance : UserControl { MainFrame _mainFrame; public ScreenMaintenance(MainFrame mainFrame) { InitializeComponent(); _mainFrame = mainFrame; pnl_Main.Controls.Clear(); pnl_Main.Controls.Add(_mainFrame.screenIO); } private void rb_IO_CheckedChanged(object sender, EventArgs e) { pnl_Main.Controls.Clear(); if (rb_IO.Checked) { EquipmentLogManager.Instance.WriteButtonLog($"{this.Name} : {((Control)sender).Text}"); pnl_Main.Controls.Add(_mainFrame.screenIO); } else if (rb_Setting.Checked) { EquipmentLogManager.Instance.WriteButtonLog($"{this.Name} : {((Control)sender).Text}"); pnl_Main.Controls.Add(_mainFrame.screenSetting); } else if(rb_Motor.Checked) { EquipmentLogManager.Instance.WriteButtonLog($"{this.Name} : {((Control)sender).Text}"); pnl_Main.Controls.Add(_mainFrame.screenMotionMaintenance); } else if(rb_Laser.Checked) { EquipmentLogManager.Instance.WriteButtonLog($"{this.Name} : {((Control)sender).Text}"); pnl_Main.Controls.Add(_mainFrame.screenLaser); } else if(rb_Parameter.Checked) { EquipmentLogManager.Instance.WriteButtonLog($"{this.Name} : {((Control)sender).Text}"); pnl_Main.Controls.Add(_mainFrame.screenParameter); } } } }