コード例 #1
0
        public MarkDownLabel() {
            InitializeComponent();

            var zerlege_MarkDown_Text = new Zerlege_MarkDown_Text();
            var textBlöcke_erzeugen = new TextBlöcke_erzeugen();

            zerlege_MarkDown_Text.Result += textBlöcke_erzeugen.Process;
            textBlöcke_erzeugen.Result += textBlocks => {
                wrapPanel.Children.Clear();
                foreach (var textBlock in textBlocks) {
                    wrapPanel.Children.Add(textBlock);
                }
            };
            parse_Markdown = new Action<string>(zerlege_MarkDown_Text.Process);
        }
コード例 #2
0
 public void Setup() {
     sut = new Zerlege_MarkDown_Text();
     sut.Result += x => result = x;
 }