public frmMsg(string title, string msg, FormMessageIcons icon, string btnClose_Text) { InitializeComponent(); Text = _title = title; lblMessage.Text = _msg = msg; _icon = icon; btnClose.Text = _btnClose_Text = btnClose_Text; if (_icon == FormMessageIcons.Loading) { picStatus.Image = igcmd.Properties.Resources.loading; } else if (_icon == FormMessageIcons.Warning) { picStatus.Image = igcmd.Properties.Resources.warning; } else { picStatus.Image = igcmd.Properties.Resources.ok; } }