예제 #1
0
        public MemoTreeView(MemoDocument doc) : this()
        {
            this.doc      = doc;
            this.ddctrl   = new NodeDragDrop.NddMove(this);
            this.menuctrl = new ContextMenuByNode(this);

            this.RefreshFiles();
            this.menuctrl.ContextMenu += new mwg.Windows.TreeViewClasses.ContextMenuByNode.ContextMenuEventHandler(menuctrl_ContextMenu);
        }
예제 #2
0
 private void InitializeComponentTrue(MemoDocument doc)
 {
     this.treeView1 = new MemoTreeView(doc);
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.textBox1  = new System.Windows.Forms.TextBox();
     this.SuspendLayout();
     //
     // treeView1
     //
     this.treeView1.AllowDrop          = true;
     this.treeView1.Dock               = System.Windows.Forms.DockStyle.Left;
     this.treeView1.ImageIndex         = -1;
     this.treeView1.Location           = new System.Drawing.Point(0, 0);
     this.treeView1.Name               = "treeView1";
     this.treeView1.SelectedImageIndex = -1;
     this.treeView1.Size               = new System.Drawing.Size(200, 389);
     this.treeView1.TabIndex           = 0;
     //
     // splitter1
     //
     this.splitter1.Location = new System.Drawing.Point(200, 0);
     this.splitter1.Name     = "splitter1";
     this.splitter1.Size     = new System.Drawing.Size(3, 389);
     this.splitter1.TabIndex = 1;
     this.splitter1.TabStop  = false;
     //
     // textBox1
     //
     this.textBox1.AcceptsReturn = true;
     this.textBox1.AcceptsTab    = true;
     this.textBox1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.textBox1.Font          = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
     this.textBox1.Location      = new System.Drawing.Point(203, 0);
     this.textBox1.Multiline     = true;
     this.textBox1.Name          = "textBox1";
     this.textBox1.ScrollBars    = System.Windows.Forms.ScrollBars.Both;
     this.textBox1.Size          = new System.Drawing.Size(445, 389);
     this.textBox1.TabIndex      = 2;
     this.textBox1.Text          = "";
     this.textBox1.WordWrap      = false;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
     this.ClientSize        = new System.Drawing.Size(648, 389);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.treeView1);
     this.Name = "Form1";
     this.Text = "Form1";
     this.ResumeLayout(false);
 }