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 PaintingPC { public partial class FrmMessage : Form { private FrmChainUp1 frm; public FrmMessage(string value,Color color) { InitializeComponent(); label1.Text = value; this.BackColor = color; } private void button1_Click(object sender, EventArgs e) { if (Owner is FrmChainUp1 form1) { form1.UpdateTextState(); } this.Close(); } } }