public SourceView ()
{
FixedHeightMode = false;
BuildColumns ();
store = new SourceModel ();
store.SourceRowInserted += OnSourceRowInserted;
store.SourceRowRemoved += OnSourceRowRemoved;
store.RowChanged += OnRowChanged;
Model = store;
EnableSearch = false;
ShowExpanders = false;
LevelIndentation = 6;
ConfigureDragAndDrop ();
store.Refresh ();
ConnectEvents ();
Selection.SelectFunction = (selection, model, path, selected) => {
Source source = store.GetSource (path);
if (source == null || source is SourceManager.GroupSource) {
return false;
}
return true;
};
ResetSelection ();
}