Esempio n. 1
0
        public SettingsDialog(IFindCustomAttributes <SettingsPanelAttribute> settingAttributes)
        {
            if (settingAttributes == null)
            {
                throw new ArgumentNullException(nameof(settingAttributes));
            }

            _settingAttributes = settingAttributes;
            _panelCache        = new Dictionary <Type, XenVisualElement>();
        }
 public DefaultPropertyEditorManager(ITypeFinder typeFinder, IFindCustomAttributes <PropertyEditorAttribute> attributeFinder)
 {
     _typeFinder   = typeFinder;
     _associations = attributeFinder.FindAll();
 }
Esempio n. 3
0
 public MenuBuilder(IFindCustomAttributes <MenuPlacementAttribute> finder)
 {
     _attributes = finder.FindAll();
     _attributes.LogDiagnostics(XenLogLevel.Trace);
 }