コード例 #1
0
        private void btnGenerate_Click(object sender, RoutedEventArgs e)
        {
            var parser = new PropertyDocParser();
            parser.EntityViewMeta = UIModel.Views.CreateBaseView(typeof(TestDocument));
            parser.ClassContent = System.IO.File.ReadAllText(@"D:\_Code\Rafy\Rafy\Plugins\Rafy.DocBuilder\TestDocument.cs");
            parser.Parse();

            //var dialog = new OpenFileDialog
            //{
            //    Filter = "*.csproj",
            //};
            //var res = dialog.ShowDialog();
            //if (res == true)
            //{
            //    var fileName = dialog.FileName;

            //}
        }
コード例 #2
0
        private void btnGenerate_Click(object sender, RoutedEventArgs e)
        {
            var parser = new PropertyDocParser();

            parser.EntityViewMeta = UIModel.Views.CreateBaseView(typeof(TestDocument));
            parser.ClassContent   = System.IO.File.ReadAllText(@"D:\_Code\Rafy\Rafy\Plugins\Rafy.DocBuilder\TestDocument.cs");
            parser.Parse();

            //var dialog = new OpenFileDialog
            //{
            //    Filter = "*.csproj",
            //};
            //var res = dialog.ShowDialog();
            //if (res == true)
            //{
            //    var fileName = dialog.FileName;

            //}
        }