public void MoafaShow(string text, MoafaIcon moafaIcon, Color backColor, Color foreColor) { label1.Text = text; if (moafaIcon == MoafaIcon.Success) { pictureBox1.Image = Properties.Resources.Apply_32x32; } else { pictureBox1.Image = Properties.Resources.Close_32x32; } this.BackColor = backColor; this.label1.ForeColor = foreColor; }
public void MoafaShow(string text, MoafaIcon moafaIcon) { label1.Text = text; if (moafaIcon == MoafaIcon.Success) { pictureBox1.Image = Properties.Resources.Apply_32x32; } else { pictureBox1.Image = Properties.Resources.Close_32x32; } this.Show(); this.timer1.Start(); }