//************************************************************************************************************* public LocalList() { FullRowSelect = true; Columns.Add("Name", 205); Columns.Add("Size", 100, HorizontalAlignment.Right); Columns.Add("Last Update", 125); DoubleClick += new System.EventHandler(this_DoubleClick); ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this_ItemDrag); DragDrop += new System.Windows.Forms.DragEventHandler(this_DragDrop); DragEnter += new System.Windows.Forms.DragEventHandler(this_DragEnter); KeyDown += new System.Windows.Forms.KeyEventHandler(this_KeyDown); MouseUp += new System.Windows.Forms.MouseEventHandler(this_MouseUp); AfterLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this_AfterLabelEdit); fileSystemWatcher.IncludeSubdirectories = false; fileSystemWatcher.NotifyFilter = NotifyFilters.Attributes | NotifyFilters.CreationTime | NotifyFilters.DirectoryName | NotifyFilters.FileName | NotifyFilters.LastWrite | NotifyFilters.Size; fileSystemWatcher.SynchronizingObject = this; fileSystemWatcher.Changed += new System.IO.FileSystemEventHandler(this.fileSystemWatcher_Changed); fileSystemWatcher.Created += new System.IO.FileSystemEventHandler(this.fileSystemWatcher_Changed); fileSystemWatcher.Deleted += new System.IO.FileSystemEventHandler(this.fileSystemWatcher_Changed); fileSystemWatcher.Renamed += new System.IO.RenamedEventHandler(this.fileSystemWatcher_Renamed); ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.List_ColumnClick); }
//************************************************************************************************************* public RemoteList() { FullRowSelect = true; Columns.Add("Name", 220); Columns.Add("Size", 100, HorizontalAlignment.Right); Columns.Add("Last Update", 125); DoubleClick += new System.EventHandler(this_DoubleClick); ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this_ItemDrag); DragDrop += new System.Windows.Forms.DragEventHandler(this_DragDrop); DragEnter += new System.Windows.Forms.DragEventHandler(this_DragEnter); KeyDown += new System.Windows.Forms.KeyEventHandler(this_KeyDown); MouseUp += new System.Windows.Forms.MouseEventHandler(this_MouseUp); AfterLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this_AfterLabelEdit); ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.List_ColumnClick); }