Ejemplo n.º 1
0
			public void FillTypSelection ()
				{
				if ((SelectedGroupTreeEntryClass != null)
				    && (SelectedTreeEntryClass != null))
					{
					return;
					}
				SelectedTreeEntryClass = DataModell.GetTreeEntryClassFromGuid(DataModell.ActiveInformationen.TypID);
				if (SelectedTreeEntryClass == null)
					return;
				SelectedGroupTreeEntryClass = DataModell.GetRootTreeEntryClassFromGuid
							(((Typ) SelectedTreeEntryClass.ConnectedObject).RootFormat);
				

				}
Ejemplo n.º 2
0
			public void AnalyzePreSelectedTyp(Typ PreSelected, out TreeEntryClass SelectedGroup, out TreeEntryClass SelectedTyp)
				{
				SelectedGroup = null;
				SelectedTyp = null;
				foreach (TreeEntryClass RootEntry in DataModell.TreeEntryClassCacheInstance.TypTree)
					{
					foreach (TreeEntryClass ChildEntry in RootEntry.Childs)
						{
						if (((Typ) ChildEntry.ConnectedObject).Id == PreSelected.Id)
							{
							SelectedGroup = RootEntry;
							SelectedTyp = ChildEntry;
							return;
							}
						}

					}

				}