Beispiel #1
0
        public override TextNote ConvertToTextNote()
        {
            TextNote newNote = new TextNote()
            {
                ExplicitName = this.ExplicitName,
                IsExpanded   = this.IsExpanded,
                IsSelected   = this.IsSelected
            };

            newNote.Ideas = Ideas;

            newNote.AddParagraph(Now.ToString($"Now: dddd, MMMM d{(NowYear ? ", yyy" : string.Empty)}{(NowTime ? " h:mm tt" : string.Empty)}"));
            newNote.AddParagraph(string.Empty);
            newNote.AddParagraph("Events:");
            foreach (var timelineEvent in Events)
            {
                newNote.AddParagraph(timelineEvent.Date.ToString($"dddd, MMMM dd{(timelineEvent.UseYear ? ", yyy" : string.Empty)}{(timelineEvent.UseTime ? " h:mm tt" : string.Empty)}"));
                newNote.AddParagraph(string.Empty);
                Xceed.Wpf.Toolkit.RichTextBox rtb = new Xceed.Wpf.Toolkit.RichTextBox();
                rtb.Text = timelineEvent.Rtf;
                rtb.SelectAll();
                rtb.Copy();
                newNote.PasteToRtf();
            }

            return(newNote);
        }
Beispiel #2
0
        public override TextNote ConvertToTextNote()
        {
            TextNote newNote = new TextNote()
            {
                ExplicitName = this.ExplicitName,
                IsExpanded   = this.IsExpanded,
                IsSelected   = this.IsSelected
            };

            newNote.Ideas = Ideas;

            newNote.AddParagraph(GetPlotString());
            newNote.AddParagraph(string.Empty);
            foreach (var line in CharacterConflict.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
            {
                newNote.AddParagraph(line);
            }
            newNote.AddParagraph(string.Empty);
            foreach (var line in Backgrounds.GetSummary(0).Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
            {
                newNote.AddParagraph(line);
            }
            newNote.AddParagraph(string.Empty);
            foreach (var line in Resolutions.GetSummary(0).Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
            {
                newNote.AddParagraph(line);
            }
            newNote.AddParagraph(string.Empty);
            foreach (var line in Traits.GetSummary(0).Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
            {
                newNote.AddParagraph(line);
            }
            newNote.AddParagraph(string.Empty);
            foreach (var line in Settings.GetSummary(0).Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
            {
                newNote.AddParagraph(line);
            }
            newNote.AddParagraph(string.Empty);
            foreach (var line in Themes.GetSummary(0).Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
            {
                newNote.AddParagraph(line);
            }
            newNote.AddParagraph(string.Empty);
            foreach (var line in Genres.GetSummary(0).Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
            {
                newNote.AddParagraph(line);
            }

            return(newNote);
        }