Example #1
0
        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);
        }
Example #2
0
        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;
        }
Example #3
0
 public void AddPanel(BrowsePanel panel)
 {
     _panels.Add(panel);
 }