コード例 #1
0
ファイル: SettingsDialog.cs プロジェクト: gitoscc/XenForms
        public SettingsDialog(IFindCustomAttributes <SettingsPanelAttribute> settingAttributes)
        {
            if (settingAttributes == null)
            {
                throw new ArgumentNullException(nameof(settingAttributes));
            }

            _settingAttributes = settingAttributes;
            _panelCache        = new Dictionary <Type, XenVisualElement>();
        }
コード例 #2
0
 public DefaultPropertyEditorManager(ITypeFinder typeFinder, IFindCustomAttributes <PropertyEditorAttribute> attributeFinder)
 {
     _typeFinder   = typeFinder;
     _associations = attributeFinder.FindAll();
 }
コード例 #3
0
ファイル: MenuBuilder.cs プロジェクト: gitoscc/XenForms
 public MenuBuilder(IFindCustomAttributes <MenuPlacementAttribute> finder)
 {
     _attributes = finder.FindAll();
     _attributes.LogDiagnostics(XenLogLevel.Trace);
 }