本文整理汇总了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);
}
示例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);
}
示例3: SaveTo
public void SaveTo(Section section)
{
Verify.Argument.IsNotNull(section, "section");
section.SetValue("Path", _path);
section.SetValue("Type", _type);
section.SetValue("Description", _description);
}
示例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);
}
示例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);
}
示例6: SaveTo
public void SaveTo(Section section)
{
Verify.Argument.IsNotNull(section, "section");
section.SetValue("Guid", _guid);
}
示例7: SaveMoreTo
protected override void SaveMoreTo(Section section)
{
base.SaveMoreTo(section);
section.SetValue("Abbreviate", Abbreviate);
}
示例8: SaveMoreTo
protected override void SaveMoreTo(Section section)
{
base.SaveMoreTo(section);
section.SetValue("DateFormat", DateFormat);
}
示例9: SaveMoreTo
protected override void SaveMoreTo(Section section)
{
base.SaveMoreTo(section);
section.SetValue("ShowColors", ShowColors);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}