Beispiel #1
0
        OnAnalysisSuccess
        (
            XmlDocument oGraphMLXmlDocument
        )
        {
            Debug.Assert(oGraphMLXmlDocument != null);
            AssertValid();

            // Check whether at least one vertex was returned.

            if (GraphMLXmlDocument.GetHasVertexXmlNode(oGraphMLXmlDocument))
            {
                m_oGraphMLXmlDocument = oGraphMLXmlDocument;
                this.DialogResult     = DialogResult.OK;
                Close();
            }
            else
            {
                OnEmptyGraph();
            }
        }
Beispiel #2
0
        OnUnexpectedException
        (
            Exception oException,
            XmlDocument oGraphMLXmlDocument,
            RequestStatistics oRequestStatistics
        )
        {
            Debug.Assert(oException != null);
            Debug.Assert(oGraphMLXmlDocument != null);
            Debug.Assert(oRequestStatistics != null);
            AssertValid();

            if (
                oException is CancellationPendingException
                ||
                !GraphMLXmlDocument.GetHasVertexXmlNode(oGraphMLXmlDocument)
                )
            {
                throw (oException);
            }

            oRequestStatistics.OnUnexpectedException(oException);
        }