Example #1
0
		private void CreateAllChildElements(DbEntities.dbserver3.multimedia.rows.Page sourcePage,
				HsCentralServiceWebInterfacesServer._dbs.hsserver.ringplayerdb.rows.Page convertedSourcePage)
			{ 
			foreach (DbEntities.CustomClasses.PlayerInterfaces.IBaseVisual baseVisual
						in sourcePage.IChildren.OrderBy(ord => ord.ISortOrder))
				{
				if (baseVisual.GetType() == typeof(DbEntities.dbserver3.multimedia.rows.Page))
					{
					CreatePlayerSubPage(baseVisual as DbEntities.dbserver3.multimedia.rows.Page, convertedSourcePage);
					}
				else if (baseVisual.GetType() == typeof(DbEntities.dbserver3.multimedia.rows.Text))
					{
					CreateTextElement(baseVisual as DbEntities.dbserver3.multimedia.rows.Text, convertedSourcePage);
					}
				else if (baseVisual.GetType() == typeof(DbEntities.dbserver3.multimedia.rows.Image))
					{
					CreateImageElement(baseVisual as DbEntities.dbserver3.multimedia.rows.Image, convertedSourcePage);
					}
				else if (baseVisual.GetType() == typeof(DbEntities.dbserver3.multimedia.rows.Video))
					{
					CreateVideoElement(baseVisual as DbEntities.dbserver3.multimedia.rows.Video, convertedSourcePage);
					}
				else
					{
					throw new Exception($"Illegal Typ ({baseVisual.GetType()}) as pageChildren ");
					}
				}
			}
Example #2
0
		private void CreateVideoElement(DbEntities.dbserver3.multimedia.rows.Video videoBase,
			HsCentralServiceWebInterfacesServer._dbs.hsserver.ringplayerdb.rows.Page convertedParentPage)
			{
			Video newVideo = TargetPlayerDb.Videos.NewRow();
			newVideo.Id = videoBase.Id;
			newVideo.Page = convertedParentPage;
			newVideo.VideoId = videoBase.VideoId;
			newVideo.FileIdentifier = videoBase.VideoId;

			newVideo.Background = videoBase.Background;
			newVideo.BorderColor = videoBase.BorderColor;
			newVideo.SortOrder = videoBase.SortOrder;
			newVideo.Extension = videoBase.Extension;
			newVideo.Rotation = videoBase.Rotation;
			newVideo.Background = videoBase.Background;
			newVideo.BorderColor = videoBase.BorderColor;
			newVideo.BorderThickness = videoBase.BorderThickness;
			newVideo.MarginThickness = videoBase.MarginThickness;
			newVideo.Rotation = videoBase.Rotation;

			newVideo.Table.Add(newVideo);
			}
Example #3
0
		private void CreateTextElement(DbEntities.dbserver3.multimedia.rows.Text textBase,
			HsCentralServiceWebInterfacesServer._dbs.hsserver.ringplayerdb.rows.Page convertedParentPage)
			{
			Text newText = TargetPlayerDb.Texts.NewRow();
			newText.Id = textBase.Id;
			newText.Page = convertedParentPage;
			newText.TextColumn = textBase.TextColumn;

			newText.Background = textBase.Background;
			newText.BorderColor = textBase.BorderColor;
			newText.SortOrder = textBase.SortOrder;
			newText.TextColumn = textBase.TextColumn;
			newText.FontFamily = textBase.FontFamily;
			newText.FontWeight = textBase.FontWeight;
			newText.FontStyle = textBase.FontStyle;
			newText.Foreground = textBase.Foreground;
			newText.Background = textBase.Background;
			newText.BorderColor = textBase.BorderColor;
			newText.BorderThickness = textBase.BorderThickness;
			newText.MarginThickness = textBase.MarginThickness;
			newText.Rotation = textBase.Rotation;

			newText.Table.Rows.Add(newText);
			}
Example #4
0
		private void CreateImageElement(DbEntities.dbserver3.multimedia.rows.Image imageBase,
			HsCentralServiceWebInterfacesServer._dbs.hsserver.ringplayerdb.rows.Page convertedParentPage)
			{
			Image newImage = TargetPlayerDb.Images.NewRow();
			newImage.Id = imageBase.Id;
			newImage.Page = convertedParentPage;
			newImage.ImageId = imageBase.ImageId;
			newImage.FileIdentifier = imageBase.ImageId;
			newImage.Background = imageBase.Background;
			newImage.BorderColor = imageBase.BorderColor;
			newImage.SortOrder = imageBase.SortOrder;
			newImage.Extension = imageBase.Extension;
			newImage.Rotation = imageBase.Rotation;
			newImage.Background = imageBase.Background;
			newImage.BorderColor = imageBase.BorderColor;
			newImage.BorderThickness = imageBase.BorderThickness;
			newImage.MarginThickness = imageBase.MarginThickness;
			newImage.Rotation = imageBase.Rotation;

			newImage.Table.Rows.Add(newImage);
			}
Example #5
0
		private void CreatePlayerSubPage(DbEntities.dbserver3.multimedia.rows.Page sourcePage,
			HsCentralServiceWebInterfacesServer._dbs.hsserver.ringplayerdb.rows.Page convertedSourceParent)
			{
			HsCentralServiceWebInterfacesServer._dbs.hsserver.ringplayerdb.rows.Page convertedSourcePage
				= TargetPlayerDb.Pages.NewRow();
			convertedSourcePage.Id = Guid.NewGuid();
			convertedSourcePage.DiagnosticText = $"child von {sourcePage.DiagnosticText}";
			convertedSourcePage.ExpectedDuration = 0;
			convertedSourcePage.PageGroup = TargetPageGroup;
			convertedSourcePage.ParentPage = convertedSourceParent;
			convertedSourcePage.SortOrder = (int)sourcePage.SortOrder;
			convertedSourcePage.BorderColor = sourcePage.BorderColor;
			convertedSourcePage.Background = sourcePage.Background;
			convertedSourcePage.BorderThickness = sourcePage.BorderThickness;
			convertedSourcePage.MarginThickness = sourcePage.MarginThickness;
			convertedSourcePage.HasFixedRatio = false;
			convertedSourcePage.RatioX = sourcePage.RatioX;
			convertedSourcePage.RatioY = sourcePage.RatioY;
			convertedSourcePage.Table.Rows.Add(convertedSourcePage);
			CreateAllChildElements(sourcePage, convertedSourcePage);
			}