Ejemplo n.º 1
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();
        }
Ejemplo n.º 2
0
        public void SetGroupFilter(GroupFilter _groupFilter)
        {
            Debug.Assert(_groupFilter != null);

            DataGridView.Filter = _groupFilter.Filter;

            _groupFilter.Event += OnGroupFilterEvent;
        }
Ejemplo n.º 3
0
        public Filter(GroupFilter _parent)
        {
            Debug.Assert(_parent != null);

            m_parent = _parent;
        }