示例#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();
 }
示例#2
0
文件: Content.cs 项目: artalgame/CP
 public static Content GetFromContentModel(ContentModel contentModel)
 {
     var content = new Content() {
     ContentId = contentModel.ContentId,
     Font = contentModel.Font,
     FontColor = contentModel.FontColor,
     FontSize = Int32.Parse(contentModel.FontSize),
     FontStyle = contentModel.FontStyle,
     Text = contentModel.Text
     };
     return content;
 }
示例#3
0
        public static ContentModel CreateFromContent(Content content)
        {
            var contentModel = new ContentModel();

            contentModel.Font = content.Font;
            contentModel.FontColor = content.FontColor;
            contentModel.FontSize = content.FontSize.ToString();
            contentModel.FontStyle = content.FontStyle;
            contentModel.Text = content.Text;
            contentModel.ContentId = content.ContentId;

            return contentModel;
        }