public void Alert(string msg, frmAlert.Type type) { Thread aleart = new Thread(new ThreadStart(() => Application.Run(new frmAlert(msg, type)))); aleart.Start(); }
public frmAlert(string msg, frmAlert.Type type) { InitializeComponent(); showAlert(msg, type); }