private static void ShowMessage(PopupNotifier popup) { popup.Click += (b, c) => { var frm = new Form(); { try { frm.Icon = UtilityIco.GetIco(popup.Image as Bitmap); } catch { } frm.Text = popup.TitleText; frm.Size = new System.Drawing.Size(600, 600); frm.StartPosition = FormStartPosition.CenterScreen; frm.ShowInTaskbar = true; frm.Controls.Add(new TextBox() { Multiline = true, Dock = DockStyle.Fill, Font = new System.Drawing.Font(Form.DefaultFont.Name, 14), Text = popup.ContentText }); frm.Show(); } }; }
public static Icon GetIco(Bitmap bitmap) { return(UtilityIco.GetIco(bitmap)); }