예제 #1
0
파일: SlideModel.cs 프로젝트: artalgame/CP
 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
파일: Title.cs 프로젝트: artalgame/CP
 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;
 }
예제 #3
0
파일: TitleModel.cs 프로젝트: artalgame/CP
        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;
        }