コード例 #1
0
        public string GenerateHtml()
        {
            SaveDatas();
            switch (DisplayMode)
            {
            case DisplayMode.Relations:
                var relWritter = new TreeWriter();
                return(relWritter.GenerateHtml(PersonnageInfo.Personnage.Relations, OptionsViewModel.Options));

            case DisplayMode.Rps:
                var htmlWriter = new HtmlWriterService();
                return(htmlWriter.GenerateHtml(PersonnageInfo.Personnage.Periodes, OptionsViewModel.Options));

            default:
                return(string.Empty);
            }
        }