Example #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("}");
        }
Example #2
0
        public TreeViewNode()
            : base()
        {
            HMembers = new HContainerBlock();
            VMembers = new VContainerBlock();

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

            InitControl();
        }
Example #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"));
        }
Example #4
0
        public UniversalBlock(VContainerBlock vMembers)
            : base()
        {
            HMembers = CreateHMembers();
            if (vMembers == null)
            {
                VMembers = CreateVMembers();
            }
            else
            {
                VMembers = vMembers;
            }

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

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

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