Exemplo n.º 1
0
        private void Init()
        {
            InitModifiers();
            MyUniversalControl.CanOffsetCurlies = true;

            NameBlock = new MemberNameBlock();

            HMembers.Add(Modifiers);
            HMembers.Add(NameBlock);
            HMembers.Add(Parameters);
        }
Exemplo n.º 2
0
        public InterfaceBlock()
            : base()
        {
            NameBlock = new TypeNameBlock(2 * ShapeStyle.DefaultFontSize);
            MyUniversalControl.CanOffsetCurlies = true;
            MyUniversalControl.OpenCurlyHasNegativeLowerMargin = false;

            InitModifiers();
            HMembers.Add(Modifiers);

            HMembers.Add(new KeywordLabel("interface"));
            HMembers.Add(NameBlock);
            VMembers.Children.Add(new InterfaceMemberDeclarationBlock());
        }
Exemplo n.º 3
0
        public ClassOrStructBlock(string keyword)
            : base()
        {
            NameBlock = new TypeNameBlock(16);

            //HMembers.Add(new PictureBlock(CSharpPictureLibrary.Instance.TypeClass));
            InitModifiers();
            HMembers.Add(Modifiers);
            HMembers.Add(new KeywordLabel(keyword));
            HMembers.Add(NameBlock);
            VMembers.Children.Add(new EmptyClassMember());

            MyUniversalControl.CanOffsetCurlies = true;
        }
Exemplo n.º 4
0
 public TreeViewNode(string Caption)
     : this()
 {
     HMembers.Add(new TreeViewLabelBlock(Caption));
 }