コード例 #1
0
ファイル: TagGenerator.cs プロジェクト: rmueller/fubumvc
        public TagGenerator(TagProfileLibrary library, IElementNamingConvention namingConvention, IServiceLocator services)
        {
            ElementPrefix = string.Empty;

            _library          = library;
            _namingConvention = namingConvention;
            _services         = services;

            _profile = _library.DefaultProfile;
        }
コード例 #2
0
ファイル: TagProfile.cs プロジェクト: pjdennis/fubumvc
 public void Import(TagProfile peer)
 {
     Label.Merge(peer.Label);
     Display.Merge(peer.Display);
     Editor.Merge(peer.Editor);
     BeforePartial.Merge(peer.BeforePartial);
     AfterPartial.Merge(peer.AfterPartial);
     BeforeEachOfPartial.Merge(peer.BeforeEachOfPartial);
     AfterEachOfPartial.Merge(peer.AfterEachOfPartial);
 }
コード例 #3
0
        public TagProfileExpression(TagProfile profile)
        {
            _profile = profile;
            Labels   = new TagFactoryExpression(profile.Label);
            Editors  = new TagFactoryExpression(profile.Editor);
            Displays = new TagFactoryExpression(profile.Display);

            BeforePartial       = new TagFactoryExpression(profile.BeforePartial);
            AfterPartial        = new TagFactoryExpression(profile.AfterPartial);
            BeforeEachOfPartial = new PartialTagFactoryExpression(profile.BeforeEachOfPartial);
            AfterEachOfPartial  = new PartialTagFactoryExpression(profile.AfterEachOfPartial);
        }
コード例 #4
0
ファイル: TagProfileLibrary.cs プロジェクト: rmueller/fubumvc
        public void Seal()
        {
            TagProfile defaults = DefaultProfile;

            _profiles.Each(p =>
            {
                if (p == defaults)
                {
                    return;
                }

                p.Import(defaults);
            });
        }
コード例 #5
0
ファイル: TagProfile.cs プロジェクト: rmueller/fubumvc
        public void Import(TagProfile peer)
        {
            Label.Merge(peer.Label);
            Display.Merge(peer.Display);
            Editor.Merge(peer.Editor);
            BeforePartial.Merge(peer.BeforePartial);
            AfterPartial.Merge(peer.AfterPartial);
            BeforeEachOfPartial.Merge(peer.BeforeEachOfPartial);
            AfterEachOfPartial.Merge(peer.AfterEachOfPartial);

            if (peer._layoutBuilder != null)
            {
                _layoutBuilder = peer._layoutBuilder;
            }
        }
コード例 #6
0
ファイル: TagGenerator.cs プロジェクト: rmueller/fubumvc
 public void SetProfile(string profileName)
 {
     _profile = _library[profileName];
 }
コード例 #7
0
ファイル: TagProfileLibrary.cs プロジェクト: rmueller/fubumvc
 public void ImportProfile(TagProfile profile)
 {
     _profiles[profile.Name].Import(profile);
 }