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