示例#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();
        }
示例#2
0
        public void SetGroupFilter(GroupFilter _groupFilter)
        {
            Debug.Assert(_groupFilter != null);

            DataGridView.Filter = _groupFilter.Filter;

            _groupFilter.Event += OnGroupFilterEvent;
        }
示例#3
0
        public Filter(GroupFilter _parent)
        {
            Debug.Assert(_parent != null);

            m_parent = _parent;
        }