public Controller(Model _model, View _view) { Debug.Assert(_model != null); Debug.Assert(_view != null); Model = _model; View = _view; View.ViewEvent += OnViewEvent; }
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(); }