using ComponentFactory.Krypton.Toolkit; 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; namespace CleanMachineHMI { public partial class frmSysExitAlarm : KryptonForm { public frmSysExitAlarm() { InitializeComponent(); } public string showMsg { get; set; } private void button1_Click_1(object sender, EventArgs e) { frmMainNew.MothedShowMessage(); this.Close(); } private void Form1_Load(object sender, EventArgs e) { kryptonLabel1.Text = showMsg; } } }