Exemple #1
0
        public Controller(Model _model, View _view)
        {
            Debug.Assert(_model != null);
            Debug.Assert(_view != null);

            Model = _model;

            View = _view;
            View.ViewEvent += OnViewEvent;
        }
Exemple #2
0
        public FileController(Model _model, View _view) : base(_model, _view)
        {
            Config = FileControllerConfig.LoadConfig(ConfigPath) as FileControllerConfig;

            GroupFilter = new GroupFilter();

            FileView.SetDataGridSource(FileModel.Files);
            FileView.SetGroupFilter(GroupFilter);
            
            RefreshModel();

            FilterExtensions(Config.IgnoredExtensions);

            FileView.SearchBox.Focus();
        }