Ejemplo n.º 1
0
        public static View FromBuilder(ViewBuilder vw)
        {
            var v = new View() { _view = vw.Build() };

            v._view.Dock = DockStyle.Fill;

            return v;
        }
Ejemplo n.º 2
0
        public SplittedView(ItemTemplate p, View v)
        {
            var editor = EditorBuilder.Build(p.Extension, null, null, null);
            editor.Text = new StreamReader(new MemoryStream(Data)).ReadToEnd();

            v.Data = Data;
            var first = v.GetView();
            first.Dock = System.Windows.Forms.DockStyle.Fill;

            var c = new System.Windows.Forms.SplitContainer();
            c.Panel1.Controls.Add(first);
            c.Panel2.Controls.Add(editor);
        }