Beispiel #1
0
        public IGraphSceneLayout <IVisual, IVisualEdge> CreateLayout()
        {
            var styleSheet = StyleSheet.CreateDefaultStyleSheet();
            var result     = new VisualsSceneLayout <IVisual, IVisualEdge>(null, styleSheet);

            return(result);
        }
        public void StyleSheetTest()
        {
            var ser  = new StyleXmlSerializer();
            var item = StyleSheet.CreateDefaultStyleSheet();

            var node = ser.Write(item);

            this.ReportDetail(node.ToString());

            var newItem = ser.ReadStyleSheet(node);

            Assert.AreEqual(item, newItem);
        }
        public void StyleTest()
        {
            var ser  = new StyleXmlSerializer();
            var item = StyleSheet.CreateDefaultStyleSheet().BaseStyle;

            item.AutoSize  = new Size(10, 10);
            item.PaintData = false;

            var node = ser.Write(item);

            this.ReportDetail(node.ToString());

            var newItem = ser.ReadStyle(node, item.ParentStyle);

            Assert.IsTrue(item.Equals(newItem));
        }