Beispiel #1
0
        private DirectoryItemUI MakeDirectoryItemUi(DirectoryInfo dir, string size, bool parent)
        {
            var uiComponent = new DirectoryItemUI(dir, size, true);

            uiComponent.ExtendedClickEvent    += UiComponent_ExtendedClickEvent;
            uiComponent.ScanClickEvent        += UiComponent_ScanClickEvent;
            uiComponent.RemoveClickEvent      += UiComponent_DeleteClickEvent;
            uiComponent.InvestigateClickEvent += UiComponent_InvestigateClickEvent;
            uiComponent.Name = dir.FullName;
            return(uiComponent);
        }
 public void AddLayout(DirectoryItemUI ui)
 {
     belowFlow.Controls.Add(ui);
 }
 public void RemoveLayout(DirectoryItemUI ui)
 {
     belowFlow.Controls.Remove(ui);
 }