当前位置: 首页>>代码示例>>C#>>正文


C# Section.SetValue方法代码示例

本文整理汇总了C#中Section.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# Section.SetValue方法的具体用法?C# Section.SetValue怎么用?C# Section.SetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Section的用法示例。


在下文中一共展示了Section.SetValue方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SaveTo

        public void SaveTo(Section section)
        {
            Verify.Argument.IsNotNull(section, "section");

            section.SetValue("Order", _order);
            section.SetValue("MaxCount", _maxCount);
            section.SetValue("Skip", _skip);
        }
开发者ID:Kuzq,项目名称:gitter,代码行数:8,代码来源:LogOptions.cs

示例2: SaveGroupTo

        private static void SaveGroupTo(RepositoryGroup group, Section section)
        {
            Assert.IsNotNull(group);
            Assert.IsNotNull(section);

            section.SetValue<string>("Name", group.Name);
            SaveGroupContentTo(group, section);
        }
开发者ID:Kuzq,项目名称:gitter,代码行数:8,代码来源:RepositoryManagerService.cs

示例3: SaveTo

        public void SaveTo(Section section)
        {
            Verify.Argument.IsNotNull(section, "section");

            section.SetValue("Path", _path);
            section.SetValue("Type", _type);
            section.SetValue("Description", _description);
        }
开发者ID:Kuzq,项目名称:gitter,代码行数:8,代码来源:RepositoryLink.cs

示例4: SaveMoreTo

 protected override void SaveMoreTo(Section section)
 {
     base.SaveMoreTo(section);
     section.SetValue("AlignToGraph", AlignToGraph);
     section.SetValue("ShowLocalBranches", ShowLocalBranches);
     section.SetValue("ShowRemoteBranches", ShowRemoteBranches);
     section.SetValue("ShowTags", ShowTags);
     section.SetValue("ShowStash", ShowStash);
 }
开发者ID:Kuzq,项目名称:gitter,代码行数:9,代码来源:SubjectColumn.cs

示例5: SaveTo

        public void SaveTo(Section section)
        {
            Verify.Argument.IsNotNull(section, "section");

            section.SetValue("Name", _font.Name);
            section.SetValue("Size", _font.SizeInPoints);
            section.SetValue("Style", _font.Style);
        }
开发者ID:Kuzq,项目名称:gitter,代码行数:8,代码来源:SelectableFont.cs

示例6: SaveTo

            public void SaveTo(Section section)
            {
                Verify.Argument.IsNotNull(section, "section");

                section.SetValue("Guid", _guid);
            }
开发者ID:Kuzq,项目名称:gitter,代码行数:6,代码来源:ViewLayout.cs

示例7: SaveMoreTo

 protected override void SaveMoreTo(Section section)
 {
     base.SaveMoreTo(section);
     section.SetValue("Abbreviate", Abbreviate);
 }
开发者ID:Kuzq,项目名称:gitter,代码行数:5,代码来源:HashColumn.cs

示例8: SaveMoreTo

 protected override void SaveMoreTo(Section section)
 {
     base.SaveMoreTo(section);
     section.SetValue("DateFormat", DateFormat);
 }
开发者ID:Kuzq,项目名称:gitter,代码行数:5,代码来源:DateColumn.cs

示例9: SaveMoreTo

 protected override void SaveMoreTo(Section section)
 {
     base.SaveMoreTo(section);
     section.SetValue("ShowColors", ShowColors);
 }
开发者ID:Kuzq,项目名称:gitter,代码行数:5,代码来源:GraphColumn.cs

示例10: SaveMoreViewTo

        protected override void SaveMoreViewTo(Section section)
        {
            base.SaveMoreViewTo(section);

            section.SetValue<bool>("TreeMode", _treeMode);
            var stagedListSection = section.GetCreateSection("StagedList");
            _lstStaged.SaveViewTo(stagedListSection);
            var unstagedListSection = section.GetCreateSection("UnstagedList");
            _lstUnstaged.SaveViewTo(unstagedListSection);
        }
开发者ID:Kuzq,项目名称:gitter,代码行数:10,代码来源:CommitView.cs

示例11: SaveTo

        /// <summary>Save configuration to <paramref name="section"/>.</summary>
        /// <param name="section"><see cref="Section"/> for storing configuration.</param>
        public void SaveTo(Section section)
        {
            Verify.Argument.IsNotNull(section, "section");

            if(ActiveGitAccessorProvider != null)
            {
                section.SetValue<string>("AccessorProvider", ActiveGitAccessorProvider.Name);
                if(GitAccessor != null)
                {
                    var gitAccessorSection = section.GetCreateSection(ActiveGitAccessorProvider.Name);
                    GitAccessor.SaveTo(gitAccessorSection);
                }
            }
            _configSection = section;
        }
开发者ID:Kuzq,项目名称:gitter,代码行数:17,代码来源:RepositoryProvider.cs

示例12: SaveTo

        public void SaveTo(Section section)
        {
            Verify.Argument.IsNotNull(section, "section");

            section.SetValue("Visible", _isVisible);
            if(_sizeMode == ColumnSizeMode.Sizeable)
            {
                section.SetValue("Width", _width);
            }
            SaveMoreTo(section);
        }
开发者ID:Kuzq,项目名称:gitter,代码行数:11,代码来源:CustomListBoxColumn.cs

示例13: Save

            /// <summary>Saves this color table to configuration.</summary>
            /// <param name="section">Configuration section to save colors in.</param>
            /// <exception cref="ArgumentNullException"><paramref name="section"/> == <c>null</c>.</exception>
            public void Save(Section section)
            {
                Verify.Argument.IsNotNull(section, "section");

                section.SetValue<Color>("Background",		Background);
                section.SetValue<Color>("ArrowNormal",		ArrowNormal);
                section.SetValue<Color>("ArrowHover",		ArrowHover);
                section.SetValue<Color>("ArrowPressed",		ArrowPressed);
                section.SetValue<Color>("ArrowDisabled",	ArrowDisabled);
                section.SetValue<Color>("ThumbNormal",		ThumbNormal);
                section.SetValue<Color>("ThumbHover",		ThumbHover);
                section.SetValue<Color>("ThumbPressed",		ThumbPressed);
                section.SetValue<Color>("ThumbDisabled",	ThumbDisabled);
            }
开发者ID:Kuzq,项目名称:gitter,代码行数:17,代码来源:MSVS2012ScrollBarRenderer.cs


注:本文中的Section.SetValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。