private void drawDrives() { foreach (string drive in FSScan.getDrives()) { cb.Items.Add(drive); } if (cb.Items.Count > 0) { cb.SelectedIndex = 0; } }
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(); }