示例#1
0
        public TextLikeCodeBlock()
            : base()
        {
            this.MyControl.Focusable = true;

            HMembers = new HContainerBlock();
            VMembers = new VContainerBlock();

            HMembers.CanBeSelected = false;
            VMembers.CanBeSelected = false;

            HeaderLine = new HContainerBlock();
            HeaderLine.Children.Add(new PictureBlock(CSharpPictureLibrary.Instance.Minus));
            HeaderLine.Children.Add(HMembers);

            this.Children.Add(HeaderLine);
            this.Children.Add("{");

            HContainerBlock body = new HContainerBlock();
            body.CanBeSelected = false;
            this.Children.Add(body);
            body.Children.Add("    ");
            body.Children.Add(VMembers);

            this.Children.Add("}");
        }
示例#2
0
        public TreeViewNode()
            : base()
        {
            HMembers = new HContainerBlock();
            VMembers = new VContainerBlock();

            this.Add(HMembers);
            this.Add(VMembers);

            InitControl();
        }
示例#3
0
        public LayoutTestBlock()
            : base()
        {
            this.MyControl.Focusable = true;

            this.Children.Add(new FocusableLabelBlock("aaa"));
            VContainerBlock v = new VContainerBlock();
            v.Children.Add(new FocusableLabelBlock("bbbbbbb"));
            v.Children.Add(new FocusableLabelBlock("bbbbbbb"));
            this.Children.Add(v);
            this.Children.Add(new FocusableLabelBlock("cc"));
            this.Children.Add(new FocusableLabelBlock("ddddddddd"));
        }
示例#4
0
        public UniversalBlock(VContainerBlock vMembers)
            : base()
        {
            HMembers = CreateHMembers();
            if (vMembers == null)
            {
                VMembers = CreateVMembers();
            }
            else
            {
                VMembers = vMembers;
            }

            InitControl();
        }
示例#5
0
        public UniversalBlock(VContainerBlock vMembers)
            : base()
        {
            HMembers = CreateHMembers();
            if (vMembers == null)
            {
                VMembers = CreateVMembers();
            }
            else
            {
                VMembers = vMembers;
            }

            InitControl();
        }
示例#6
0
        protected virtual VContainerBlock CreateVMembers()
        {
            VContainerBlock result = new VContainerBlock();

            return(result);
        }
示例#7
0
 protected virtual VContainerBlock CreateVMembers()
 {
     VContainerBlock result = new VContainerBlock();
     return result;
 }
示例#8
0
 public MethodBlock(VContainerBlock vMembers)
     : base(vMembers)
 {
     Init();
 }
示例#9
0
 public ConstructorBlock(VContainerBlock members)
     : base(members)
 {
     Init();
 }
示例#10
0
 public CodeBlock(VContainerBlock vMembers)
     : base(vMembers)
 {
     Init();
 }