Esempio n. 1
0
        public static SelfType CreateSelfType(IElementCreateInfo elementCreateInfo)
        {
            var selfType = new SelfType();

            selfType.Initialize(elementCreateInfo);
            return(selfType);
        }
Esempio n. 2
0
        protected override NationalInstruments.SourceModel.RootDiagram CreateNewRootDiagram()
        {
            BlockDiagram blockDiagram = BlockDiagram.Create(ElementCreateInfo.ForNew);
            SelfType     selfTypeNode = SelfType.CreateSelfType(ElementCreateInfo.ForNew);

            blockDiagram.AddChild(selfTypeNode);
            selfTypeNode.Left = 300;
            selfTypeNode.Top  = 200;
            return(blockDiagram);
        }