示例#1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form4));
     this.listView1  = new DragAndDropListView();
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.listView2  = new DragAndDropListView();
     this.SuspendLayout();
     //
     // listView1
     //
     this.listView1.AllowDrop      = true;
     this.listView1.AllowReorder   = true;
     this.listView1.LineColor      = System.Drawing.Color.Red;
     this.listView1.Location       = new System.Drawing.Point(8, 8);
     this.listView1.Name           = "listView1";
     this.listView1.Size           = new System.Drawing.Size(272, 96);
     this.listView1.SmallImageList = this.imageList1;
     this.listView1.TabIndex       = 0;
     this.listView1.View           = System.Windows.Forms.View.SmallIcon;
     //
     // imageList1
     //
     this.imageList1.ImageSize        = new System.Drawing.Size(24, 24);
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // listView2
     //
     this.listView2.AllowDrop      = true;
     this.listView2.AllowReorder   = true;
     this.listView2.LineColor      = System.Drawing.Color.Red;
     this.listView2.Location       = new System.Drawing.Point(8, 112);
     this.listView2.Name           = "listView2";
     this.listView2.Size           = new System.Drawing.Size(272, 96);
     this.listView2.SmallImageList = this.imageList1;
     this.listView2.TabIndex       = 1;
     this.listView2.View           = System.Windows.Forms.View.SmallIcon;
     //
     // Form4
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(292, 219);
     this.Controls.Add(this.listView2);
     this.Controls.Add(this.listView1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Name            = "Form4";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "Form4";
     this.ResumeLayout(false);
 }
示例#2
0
 // Methods
 public DragItemData(DragAndDropListView listView)
 {
     this.m_listView = listView;
     this.m_dragItems = new ArrayList();
 }
示例#3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.DragAndDropListView1 = new CRC.Controls.DragAndDropListView();
     this.columnHeader1        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader2        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.DragAndDropListView2 = new CRC.Controls.DragAndDropListView();
     this.columnHeader3        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader4        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.SuspendLayout();
     //
     // DragAndDropListView1
     //
     this.DragAndDropListView1.AllowDrop    = true;
     this.DragAndDropListView1.AllowReorder = true;
     this.DragAndDropListView1.Anchor       = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.DragAndDropListView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader1,
         this.columnHeader2
     });
     this.DragAndDropListView1.FullRowSelect = true;
     this.DragAndDropListView1.LineColor     = System.Drawing.Color.LightGray;
     this.DragAndDropListView1.Location      = new System.Drawing.Point(10, 9);
     this.DragAndDropListView1.Name          = "DragAndDropListView1";
     this.DragAndDropListView1.Size          = new System.Drawing.Size(453, 163);
     this.DragAndDropListView1.TabIndex      = 0;
     this.DragAndDropListView1.UseCompatibleStateImageBehavior = false;
     this.DragAndDropListView1.View = System.Windows.Forms.View.List;
     //
     // columnHeader1
     //
     this.columnHeader1.Width = 190;
     //
     // columnHeader2
     //
     this.columnHeader2.Width = 244;
     //
     // DragAndDropListView2
     //
     this.DragAndDropListView2.AllowDrop    = true;
     this.DragAndDropListView2.AllowReorder = true;
     this.DragAndDropListView2.Anchor       = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.DragAndDropListView2.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader3,
         this.columnHeader4
     });
     this.DragAndDropListView2.FullRowSelect = true;
     this.DragAndDropListView2.LineColor     = System.Drawing.Color.Red;
     this.DragAndDropListView2.Location      = new System.Drawing.Point(10, 181);
     this.DragAndDropListView2.Name          = "DragAndDropListView2";
     this.DragAndDropListView2.Size          = new System.Drawing.Size(453, 164);
     this.DragAndDropListView2.TabIndex      = 1;
     this.DragAndDropListView2.UseCompatibleStateImageBehavior = false;
     this.DragAndDropListView2.View = System.Windows.Forms.View.List;
     //
     // columnHeader3
     //
     this.columnHeader3.Width = 190;
     //
     // columnHeader4
     //
     this.columnHeader4.Width = 244;
     //
     // Form3
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(472, 331);
     this.Controls.Add(this.DragAndDropListView2);
     this.Controls.Add(this.DragAndDropListView1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Name            = "Form3";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "Form3";
     this.ResumeLayout(false);
 }