Beispiel #1
0
 public SlideModel()
 {
     ContentOfSlide = new ContentModel() { ContentId = Guid.NewGuid()};
     TitleOfSlide = new TitleModel() { TitleId = Guid.NewGuid()};
     FonColor = "ffffff";
     PresentationId = Guid.Empty;
     SlideNumber = 0;
     SlideId = Guid.NewGuid();
 }
Beispiel #2
0
 public static Title CreateFromTitleModel(TitleModel titleModel)
 {
     var title = new Title()
     {
         Font = titleModel.Font,
         FontColor = titleModel.FontColor,
         FontSize = Int32.Parse(titleModel.FontSize),
         FontStyle = titleModel.FontStyle,
         Text = titleModel.Text,
         TitleId = titleModel.TitleId
     };
     return title;
 }
Beispiel #3
0
        public static TitleModel CreateFromTitle(Title title)
        {
            var titleModel = new TitleModel();

            titleModel.Font = title.Font;
            titleModel.FontColor = title.FontColor;
            titleModel.FontSize = title.FontSize.ToString();
            titleModel.FontStyle = title.FontStyle;
            titleModel.Text = title.Text;
            titleModel.TitleId = title.TitleId;

            return titleModel;
        }