Пример #1
0
        public Diagram(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
            : base(viewContext, initializer)
        {
            this.urlGenerator = urlGenerator;

            DataSource = new DataSource();
            DataSource.ModelType(typeof(object));

            //>> Initialization

            ConnectionDefaults = new DiagramConnectionDefaultsSettings();

            Connections = new List<DiagramConnection>();

            Layout = new DiagramLayoutSettings();

            ShapeDefaults = new DiagramShapeDefaultsSettings();

            Shapes = new List<DiagramShape>();

            //<< Initialization
        }
Пример #2
0
        public Diagram(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
            : base(viewContext, initializer)
        {
            this.urlGenerator = urlGenerator;

            DataSource = new DataSource();
            DataSource.ModelType(typeof(object));

            //>> Initialization

            ConnectionDefaults = new DiagramConnectionDefaultsSettings();

            Connections = new List <DiagramConnection>();

            Layout = new DiagramLayoutSettings();

            ShapeDefaults = new DiagramShapeDefaultsSettings();

            Shapes = new List <DiagramShape>();

            //<< Initialization
        }