Smrf.NodeXL.Visualization.Wpf.NodeXLControl.CheckIfLayingOutGraph C# (CSharp) Method

CheckIfLayingOutGraph() protected method

protected CheckIfLayingOutGraph ( String sMethodOrPropertyName ) : void
sMethodOrPropertyName String
return void
    CheckIfLayingOutGraph
    (
        String sMethodOrPropertyName
    )
    {
        Debug.Assert( !String.IsNullOrEmpty(sMethodOrPropertyName) );
        AssertValid();

        if (this.IsLayingOutGraph)
        {
            throw new InvalidOperationException(String.Format(

                "{0}.{1}: An asynchronous layout is in progress.  Check the"
                + " IsLayingOutGraph property before calling this."
                ,
                this.ClassName,
                sMethodOrPropertyName
                ) );
        }
    }
NodeXLControl