void connection_ErrorOccured(ConnectionManager conn, ErrorEvents e) { lblStatus.Text = e.ErrorMessage; lblStatus.ForeColor = Color.Red; lblStatus.Visible = true; }
private void SendError(string errorMsg) { if (ErrorOccured != null) { ErrorEvents error = new ErrorEvents(); error.ErrorMessage = errorMsg; ErrorOccured(this, error); } }