本文整理汇总了C#中Properties.GetList方法的典型用法代码示例。如果您正苦于以下问题:C# Properties.GetList方法的具体用法?C# Properties.GetList怎么用?C# Properties.GetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Properties
的用法示例。
在下文中一共展示了Properties.GetList方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RecentOpen
public RecentOpen(Properties p)
{
// don't check whether files exist because that might be slow (e.g. if file is on network
// drive that's unavailable)
this.properties = p;
recentFiles.AddRange(p.GetList<string>("Files").Select(FileName.Create));
recentProjects.AddRange(p.GetList<string>("Projects").Select(FileName.Create));
}
示例2: DisplayBindingService
public DisplayBindingService()
{
bindings = AddInTree.BuildItems<DisplayBindingDescriptor>(displayBindingPath, null, true);
urlBasedBindings = AddInTree.BuildItems<DisplayBindingDescriptor>(urlBasedDisplayBindingPath, null, false);
displayBindingServiceProperties = SD.PropertyService.NestedProperties("DisplayBindingService");
foreach (var binding in displayBindingServiceProperties.GetList<ExternalProcessDisplayBinding>("ExternalProcesses")) {
if (binding != null) {
AddExternalProcessDisplayBindingInternal(binding);
}
}
}
示例3: SetUpFixture
public void SetUpFixture()
{
using (XPathQueryControl queryControl = new XPathQueryControl()) {
Properties p = new Properties();
p.Set("XPathQuery.LastQuery", "//w:Wix");
expectedXPathsAfterLoad = new string[] {"//w:Fragment", "//w:Dialog"};
p.SetList("XPathQuery.History", expectedXPathsAfterLoad);
queryControl.SetMemento(p);
comboBoxTextAfterLoad = queryControl.XPathComboBox.Text;
comboBoxItemsAfterLoad = GetComboBoxItems(queryControl.XPathComboBox);
queryControl.XPathComboBox.Text = "*";
queryControl.XPathComboBox.Items.Clear();
queryControl.XPathComboBox.Items.Add("xs:schema");
expectedXPathsAfterSave = GetComboBoxItems(queryControl.XPathComboBox);
p = queryControl.CreateMemento();
xpathQueryAfterSave = p.Get("XPathQuery.LastQuery", String.Empty);
xpathsAfterSave = p.GetList<string>("XPathQuery.History").ToArray();
}
}
示例4: LoadXPathQueryHistory
void LoadXPathQueryHistory(Properties properties)
{
XPathComboBox.Text = properties.Get(XPathComboBoxTextProperty, string.Empty);
var xpaths = properties.GetList<string>(XPathComboBoxItemsProperty);
foreach (string xpath in xpaths) {
xpathComboBox.Items.Add(xpath);
}
}
示例5: LoadNamespaces
void LoadNamespaces(Properties properties)
{
var namespaces = properties.GetList<string>(NamespacesProperty);
foreach (string ns in namespaces) {
XmlNamespace xmlNamespace = XmlNamespace.FromString(ns);
AddNamespace(xmlNamespace.Prefix, xmlNamespace.Name);
}
}