public void changeDrive(string drive) { history = new History(FSScan.inDirectory(null, drive)); initCommands(); address = ""; drawInView(); }
private void drawDrives() { foreach (string drive in FSScan.getDrives()) { cb.Items.Add(drive); } if (cb.Items.Count > 0) { cb.SelectedIndex = 0; } }
public void enter(FSItem item) { if (browserControll.execute(enterID, item)) { FSItem newItem = FSScan.inDirectory(item.getParent, address + "\\" + item.getName); item.getFolder().clearChildren(); foreach (FSItem it in newItem.getFolder().getChildren) { item.getFolder().addItem(it); } drawInView(); } }
public void delete(FSItem item) { if (browserControll.execute(deleteID, item, true)) { FSItem rootItem = FSScan.inDirectory(history.getRootItem.getParent, address); FSItem[] children = rootItem.getFolder().getChildren; history.getRootItem.getFolder().clearChildren(); foreach (FSItem it in children) { history.getRootItem.getFolder().addItem(it); } drawInView(); } }
public FileManagerCore(ListBox lb, TextBox tb, ComboBox cb) { history = new History(FSScan.inDirectory(null, FSScan.getDrives()[0])); initCommands(); this.lb = lb; this.tb = tb; this.cb = cb; cutFlag = false; lb.DisplayMember = "getFullName"; drawInView(); drawDrives(); }