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(); }
public void SetGroupFilter(GroupFilter _groupFilter) { Debug.Assert(_groupFilter != null); DataGridView.Filter = _groupFilter.Filter; _groupFilter.Event += OnGroupFilterEvent; }
public Filter(GroupFilter _parent) { Debug.Assert(_parent != null); m_parent = _parent; }