public FileManager(BrowsePanel left, BrowsePanel right) { leftPanel = left; rightPanel = right; leftPanel.SetManager(this); rightPanel.SetManager(this); _panels = new List <BrowsePanel>(); _observers = new List <IPanelObserver>() { left, right }; AddPanel(left); AddPanel(right); }
public MainForm() { InitializeComponent(); //Ініціалізуємо панелі файлового менеджера BrowsePanel leftPanel = new BrowsePanel(leftTree, leftListView, leftDirCombo, leftExtCombo, leftTextBox, leftButton); BrowsePanel rightPanel = new BrowsePanel(rightTree, rightListView, rightDirCombo, rightExtCombo, rightTextBox, rightButton); manager = new FileManager(leftPanel, rightPanel); manager.Init(); //Встановлюємо типи пошуку List <string> types = new List <string>() { "AllDirectories", "TopDirectoryOnly" }; searchTypeComboBox.DataSource = types; }
public void AddPanel(BrowsePanel panel) { _panels.Add(panel); }