本文整理汇总了C#中DataCollection.Add方法的典型用法代码示例。如果您正苦于以下问题:C# DataCollection.Add方法的具体用法?C# DataCollection.Add怎么用?C# DataCollection.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataCollection
的用法示例。
在下文中一共展示了DataCollection.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FillInformationAndInformationenAddOns
public void FillInformationAndInformationenAddOns(Guid? ActiveInformationenID)
{
ActiveInformationen = DataModell.LoadDBInformationenShortTreeFromEntryDataSet
(DataModell.GetEntryDataSet((Guid) ActiveInformationenID, null, null, false));
if (ActiveInformationen == null)
return;
InformationAndInformationenAddOns = new DataCollection<object>();
InformationAndInformationenAddOns.Add(ActiveInformationen);
foreach (InformationenAddOn Entry in ActiveInformationen.ConnectedInformationenAddOn)
InformationAndInformationenAddOns.Add(Entry);
}
示例2: LoadAvailableFullTypForTyp
private DataCollection<FullUseForTyp> LoadAvailableFullTypForTyp (Typ TypToSearchFor)
{
DataCollection<FullUseForTyp> Result = new DataCollection<FullUseForTyp> ();
foreach (FullUseForTyp Entry in AvailableFullTyp.Values)
{
if (Entry.ConnectedID == TypToSearchFor.ID)
Result.Add(Entry);
else if (Entry.ConnectedID == TypToSearchFor.RootFormat)
Result.Add ((Entry));
}
return Result;
}
示例3: LoadAllTimingTypen
private void LoadAllTimingTypen(DataCollection<TimingTypen> _allTimingTypen)
{
foreach (DataRow TimingTypenRow in DataModell.DataSetForStaticTables.Tables["TimingTypen"].Rows)
{
_allTimingTypen.Add(new TimingTypen(TimingTypenRow));
}
}
示例4: LoadAccessRights
private void LoadAccessRights(DataCollection<AccessRights> _selectableAccessRights)
{
foreach (DataRow AccessEntryRow in DataModell.DataSetForStaticTables.Tables["AccessRights"].Rows)
{
_selectableAccessRights.Add(new AccessRights(AccessEntryRow));
}
}
示例5: LoadTypTree
private void LoadTypTree(DataCollection<TreeEntryClass> _typTree)
{
foreach (DataRow RootDataTemplateRow in DataModell.DataSetForStaticTables.Tables["RootDataTemplates"].Rows)
{
RootDataTemplates RootTyp = new RootDataTemplates(RootDataTemplateRow);
_typTree.Add(new TreeEntryClass()
{
Parent = null,
HeadLine = RootTyp.NameID,
ConnectedObject = RootTyp
});
foreach (DataRow TypRow in DataModell.DataSetForStaticTables.Tables["Typ"].Rows)
{
if (((Guid)TypRow["RootFormat"]) != RootTyp.ID)
continue;
Typ SelectableTyp = new Typ(TypRow);
_typTree.Last().Childs.Add(new TreeEntryClass()
{
Parent = _typTree.Last(),
HeadLine = SelectableTyp.NameID,
ConnectedObject = SelectableTyp
});
}
}
}
示例6: LoadKandidaten
public static DataCollection<Kandidat> LoadKandidaten(MBRWahlDataModell Parent)
{
DataCollection<Kandidat> KandidatenEntries = new DataCollection<Kandidat>();
foreach (DataRow Entry in MBRWahlDataWrapper.Instance.StaticDataSetForInternet.Tables ["Kandidaten"].Rows)
{
KandidatenEntries.Add (new Kandidat (Entry) {Parent = Parent});
}
return KandidatenEntries;
}
示例7: LoadSelectableTyp
private void LoadSelectableTyp(DataCollection<Typ> _selectableTyp)
{
foreach (DataRow TypRow in DataModell.DataSetForStaticTables.Tables["Typ"].Rows)
{
_selectableTyp.Add(new Typ(TypRow)
{
});
}
}
示例8: LoadAvailableFullTypForRoot
//private Dictionary<Guid,DataCollection<FullUseForTyp>> _availableFullTypForTypOrRoot;
//public Dictionary<Guid, DataCollection<FullUseForTyp>> AvailableFullTypForTypOrRoot
// {
// get
// {
// if (_availableFullTypForTypOrRoot == null)
// _availableFullTypForTypOrRoot = new Dictionary<Guid, DataCollection<FullUseForTyp>>();
// if (Profile.ActiveTyp != null)
// {
// if (!_availableFullTypForTypOrRoot.ContainsKey(Profile.ActiveTyp.ID))
// _availableFullTypForTypOrRoot[Profile.ActiveTyp.ID] = LoadAvailableFullTypForTyp(Profile.ActiveTyp);
// }
// else
// {
// if (Profile.ActiveRootDataTemplates != null)
// {
// if (!_availableFullTypForTypOrRoot.ContainsKey(Profile.ActiveRootDataTemplates.ID))
// _availableFullTypForTypOrRoot[Profile.ActiveRootDataTemplates.ID] = LoadAvailableFullTypForRoot(Profile.ActiveRootDataTemplates);
// }
// }
// return _availableFullTypForTypOrRoot;
// }
// set { SetProperty (ref _availableFullTypForTypOrRoot, value); }
// }
private DataCollection<FullUseForTyp> LoadAvailableFullTypForRoot(RootDataTemplates RootToSearchFor)
{
DataCollection<FullUseForTyp> Result = new DataCollection<FullUseForTyp>();
foreach (FullUseForTyp Entry in AvailableFullTyp.Values)
{
if (Entry.ConnectedID == RootToSearchFor.ID)
Result.Add(Entry);
}
return Result;
}
示例9: PropertiesForClass
public DataCollection<PropertyInfo> PropertiesForClass (String ClassName)
{
DataCollection<PropertyInfo> Result = new DataCollection<PropertyInfo> ();
if (!String.IsNullOrEmpty (ClassName))
foreach (PropertyInfo PropInfo in DataWrapper.GetTypeToCreate (ClassName).GetProperties ())
{
Result.Add (PropInfo);
}
return Result;
}
示例10: LoadSelectableZielGruppe
private void LoadSelectableZielGruppe(DataCollection<ZielGruppen> _selectableZielGruppe)
{
foreach (DataRow ZielGruppenRow in DataModell.DataSetForStaticTables.Tables["ZielGruppen"].Rows)
{
_selectableZielGruppe.Add(new ZielGruppen(ZielGruppenRow)
{
});
}
}
示例11: LoadAllWSPLakate
private int LoadAllWSPLakate()
{
_allWSPlakate = new DataCollection<WSPlakate>();
int Counter = 0;
foreach (DataRow WSPlakateRow in WordUpBasics.WordUpWCFAccess.GetCommonDataSet("Select * from WSPlakate order by NameID").Tables["WSPlakate"].Rows)
{
_allWSPlakate.Add(new WSPlakate(WSPlakateRow) { Parent = _allWSPlakate });
Counter++;
}
return Counter;
}
示例12: CreateMyElements
public static DataCollection<WordUp23.Chart> CreateMyElements()
{
DataCollection<WordUp23.Chart> Elements = new DataCollection<WordUp23.Chart>();
foreach (DataWrapper.Charts Entry in Enum.GetValues(typeof(DataWrapper.Charts)))
{
Elements.Add(new WordUp23.Chart()
{
ChartsToCreate = Entry
});
}
return Elements;
}
示例13: LoadTextReplaceElements
private DataCollection<TextReplaceElement> LoadTextReplaceElements ()
{
DataCollection<TextReplaceElement> Result = new DataCollection<TextReplaceElement> ();
foreach (XElement ReplacementEntry in PreprocessorDirectives.Elements(StartDefinitionsName).First()
.Elements(StartReplaceDefinitionsName).Descendants(ReplaceDefinitionName))
{
if (ReplacementEntry.Name != ReplaceDefinitionName)
continue;
Result.Add (new TextReplaceElement (ReplacementEntry) {Parent = this});
}
return Result;
}
示例14: CreateMyElements
public static DataCollection<SortOrder> CreateMyElements()
{
DataCollection<SortOrder> Elements = new DataCollection<SortOrder>();
foreach (DataWrapper.SortOrder Entry in Enum.GetValues(typeof(DataWrapper.SortOrder)))
{
Elements.Add(new SortOrder()
{
SortField = Entry
});
}
return Elements;
}
示例15: CreateMyElements
public static DataCollection<PersonenAuswertung> CreateMyElements()
{
DataCollection<PersonenAuswertung> Elements = new DataCollection<PersonenAuswertung>();
foreach (DataWrapper.PersonenAuswertung Entry in Enum.GetValues(typeof(DataWrapper.PersonenAuswertung)))
{
Elements.Add(new PersonenAuswertung()
{
PersonenAuswertungenToCreate = Entry
});
}
return Elements;
}