public static CommonSelectionControl CreateSelectionControl (InformationenAddOn InfoAddOn,
			TemplateElementManagement ConnectedTemplateElementManagement, TemplateManagement.AuswahlSelection EntriesToShow,
			TemplateManagement.AuswahlSortOrder SortOrder)
			{
			CommonSelectionControl SelectionControl = new CommonSelectionControl ();
			SelectionControl.InfoAddOn = InfoAddOn;
			SelectionControl.ConnectedTemplateElementManagement = ConnectedTemplateElementManagement;
			if (SelectionControl.Create (EntriesToShow, SortOrder) == false)
				return null;
			return SelectionControl;
			}
		void CreateLayoutGroupForOneInformationAddOnEntry (TemplateElementManagement.UpdateStatus UpdateStatusFunction)
			{
			String TableName = InfoAddOn.Tabelle;
			if (String.IsNullOrEmpty (TableName))
				return;
			ReadWriteInterface = TemplateManagement.GetInterface [TableName];
			ListViewItem SelectionListViewItem = null;
			if (TemplateManagement.AllFullDataElementeTemplates [InfoAddOn.ActuallBezeichner].UseSelector == "Yes")
				{
				SelectionControl = CreateSelectionControl (InfoAddOn, ConnectedTemplateElementManagement,
					ActuallAuswahlSelection, ActuallAuswahlSortOrder);
				if (SelectionControl != null)
					{
					if (ConnectedTemplateElementManagement.LocallyModifiedTableEntry == null)
						SelectionControl.ProcessDoubleClickedCall =
							new ProcessDoubleClickedEvent (ProcessDoubleClickedHandler_ForSelectionControl);
					CompleteEntryStackPanel.Children.Add (SelectionControl);
					}
				}

				
			ListViewItem ContentListViewItem = null;
			if ((TemplateManagement.AllFullDataElementeTemplates [InfoAddOn.ActuallBezeichner].UseControl == "Yes")
				|| (ConnectedTemplateElementManagement.LocallyModifiedTableEntry != null))
				{
				ITemplateReadWrite NewInstance = ReadWriteInterface.GetNewInstance ();
				ConnectedTemplateElementManagement.ReadWriteInterfaceActuallyInstatiated = NewInstance;
				NewInstance.SetParentInstances (ConnectedTemplateElementManagement, InfoAddOn);
				if (ConnectedTemplateElementManagement.LocallyModifiedTableEntry != null)
					NewInstance.SetWorkingData (ConnectedTemplateElementManagement.LocallyModifiedTableEntry);
				ContentControl = NewInstance.GetControl ();
				if (SelectionControl != null)
					SelectionControl.Tag = ContentControl;
				else
					{
					if (InfoAddOn != null)
						(ContentControl as ITemplateReadWrite).DoEdit (InfoAddOn);
					}
				CompleteEntryStackPanel.Children.Add (ContentControl);
				if ((UpdateStatusFunction == TemplateElementManagement.UpdateStatus.NothingUpdated)
					&& (TemplateManagement.AllFullDataElementeTemplates [InfoAddOn.ActuallBezeichner].UseSelector == "Yes")
					&& (SelectionControl != null))
					ContentControl.Visibility = Visibility.Collapsed;
				}

			ListViewItem FreitextListViewItem = null;
			if (TemplateManagement.AllFullDataElementeTemplates [InfoAddOn.ActuallBezeichner].UseText == "Yes")
				{
				GroupBox FreitextGroupBox = new GroupBox ();
				FreitextGroupBox.HorizontalContentAlignment = HorizontalAlignment.Stretch;
				FreitextGroupBox.Header = "Fertiger Eintrag";
				FreiTextControl = new TextBox ();
				FreiTextControl.IsReadOnly = true;
				FreitextGroupBox.Content = FreiTextControl;
				FreiTextControl.TextWrapping = TextWrapping.Wrap;
				FreiTextControl.Text = InfoAddOn.FreiText;
				FreiTextControl.AcceptsReturn = true;
				FreiTextControl.AcceptsTab = true;
				FreiTextControl.GotKeyboardFocus += new KeyboardFocusChangedEventHandler (FreiTextControl_GotKeyboardFocus);
				FreiTextControl.LostKeyboardFocus += new KeyboardFocusChangedEventHandler (FreiTextControl_LostKeyboardFocus);
				if (ContentControl != null)
					ContentControl.Tag = FreiTextControl;
				CompleteEntryStackPanel.Children.Add (FreitextGroupBox);

				}

			UpdateLayout ();
			}