예제 #1
0
        CreateGraphDrawingContext
        (
            Rectangle oSubgraphRectangle,
            GeneralUserSettings oGeneralUserSettings
        )
        {
            Debug.Assert(oGeneralUserSettings != null);
            AssertValid();

            return(new GraphDrawingContext(
                       WpfGraphicsUtil.RectangleToRect(oSubgraphRectangle), Margin,
                       WpfGraphicsUtil.ColorToWpfColor(oGeneralUserSettings.BackColor)
                       ));
        }
예제 #2
0
        TryGetGroupRectangle
        (
            GroupInfo oGroupInfo,
            out Rect oGroupRectangle
        )
        {
            Debug.Assert(oGroupInfo != null);
            AssertValid();

            oGroupRectangle = WpfGraphicsUtil.RectangleToRect(
                oGroupInfo.Rectangle);

            return(oGroupRectangle.Width > 0 && oGroupRectangle.Height > 0);
        }