/// <summary> /// Reports the supplied exception in the RAG checks smiley on the top toolbar. This will result in rag checks becomming /// visible if it was not visible before. /// </summary> /// <param name="s"></param> /// <param name="exception"></param> public void Fatal(string s, Exception exception) { var args = new CheckEventArgs(s, CheckResult.Fail, exception); if (OnFatal != null) { OnFatal(this, args); } _ragSmileyToolStrip.OnCheckPerformed(args); }
/// <summary> /// Reports the supplied exception in the RAG checks smiley on the top toolbar. This will result in rag checks becomming /// visible if it was not visible before. /// </summary> /// <param name="s"></param> /// <param name="exception"></param> public void Fatal(string s, Exception exception) { var args = new CheckEventArgs(s, CheckResult.Fail, exception); if (OnFatal != null) { OnFatal(this, args); } if (_ragSmileyToolStrip == null) { _ragSmileyToolStrip = new RAGSmileyToolStrip((Control)_hostControl); } if (_ragSmileyToolStrip.GetCurrentParent() == null) { Add(_ragSmileyToolStrip); } _ragSmileyToolStrip.OnCheckPerformed(args); }