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


C# DataCollection.Add方法代码示例

本文整理汇总了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);
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:11,代码来源:DetailDataModell.cs

示例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;
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:12,代码来源:FullUseForTypCache.cs

示例3: LoadAllTimingTypen

		private void LoadAllTimingTypen(DataCollection<TimingTypen> _allTimingTypen)
			{
			foreach (DataRow TimingTypenRow in DataModell.DataSetForStaticTables.Tables["TimingTypen"].Rows)
				{
				_allTimingTypen.Add(new TimingTypen(TimingTypenRow));
				}
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:7,代码来源:TimingTypenCache.cs

示例4: LoadAccessRights

		private void LoadAccessRights(DataCollection<AccessRights> _selectableAccessRights)
			{
			foreach (DataRow AccessEntryRow in DataModell.DataSetForStaticTables.Tables["AccessRights"].Rows)
				{
				_selectableAccessRights.Add(new AccessRights(AccessEntryRow));
				}
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:7,代码来源:AccessRightsCache.cs

示例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
						});
					}
				}
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:25,代码来源:TreeEntryClassCache.cs

示例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;
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:9,代码来源:Kandidat.cs

示例7: LoadSelectableTyp

		private void LoadSelectableTyp(DataCollection<Typ> _selectableTyp)
			{
			foreach (DataRow TypRow in DataModell.DataSetForStaticTables.Tables["Typ"].Rows)
				{
				_selectableTyp.Add(new Typ(TypRow)
					{

					});
				}
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:10,代码来源:TypCache.cs

示例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;
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:35,代码来源:FullUseForTypCache.cs

示例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;
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:10,代码来源:InformationenTableFieldSelectorModell.cs

示例10: LoadSelectableZielGruppe

		private void LoadSelectableZielGruppe(DataCollection<ZielGruppen> _selectableZielGruppe)
			{
			foreach (DataRow ZielGruppenRow in DataModell.DataSetForStaticTables.Tables["ZielGruppen"].Rows)
				{
				_selectableZielGruppe.Add(new ZielGruppen(ZielGruppenRow)
					{

					});
				}
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:10,代码来源:ZielGruppenCache.cs

示例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;
 }
开发者ID:heinzsack,项目名称:DEV,代码行数:11,代码来源:WSPlakate.cs

示例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;
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:12,代码来源:Chart.cs

示例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;
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:12,代码来源:TextPreprocessor.cs

示例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;
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:12,代码来源:SortOrder.cs

示例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;
			}
开发者ID:heinzsack,项目名称:DEV,代码行数:12,代码来源:PersonenAuswertung.cs


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