void OnModuleSelected(IModule module) { if (this.moduleSelectedSelector != null) { this.moduleSelectedSelector.Select(false); } this.ObjectSelected = module; this.moduleSelectedSelector = this.selectors.Single((ASelector <IModule> selector) => selector.ObjectSelected == module); }
void OnModuleDeselected(IModule module) { this.ObjectSelected = null; this.moduleSelectedSelector = null; }