示例#1
0
        public static VcView Create()
        {
            VcView v = new VcView();

            v.Items   = new List <ListViewItem>();
            v.Symbols = new List <Symbol>();
            return(v);
        }
示例#2
0
        public static VisualComponent Create()
        {
            VisualComponent v = new VisualComponent();

            v.IO     = new List <Panel>();
            v.IOview = VcView.Create();
            v.IOtree = VcTree.Create();

            return(v);
        }
示例#3
0
        public static VisualComponent Create(Image image, VcView view, string name = "", List <Panel> io = null, string serial = "", object tag = null)
        {
            VisualComponent v = new VisualComponent();

            if (io != null)
            {
                v.IO = new List <Panel>();
            }
            else
            {
                v.IO = io;
            }
            v.IOview = view;
            if (v.IOview.Items == null)
            {
                v.IOview.Items = new List <ListViewItem>();
            }
            v.Name         = name;
            v.Image        = image;
            v.SerialNumber = serial;
            v.Tag          = tag;
            return(v);
        }