示例#1
0
文件: Form1.cs 项目: sbraer/XsltView
        public Form1(XPathForm xpathDialog, ImportJson importJson, IXsltTransformation xsltTransformation)
        {
            _xpathDialog        = xpathDialog;
            _importJson         = importJson;
            _xsltTransformation = xsltTransformation;
            InitializeComponent();
            Icon = Resource1.Icon1;

            FixScintillaStyles(TxtXml);
            FixScintillaStyles(TxtXslt);
        }
示例#2
0
        static void Main()
        {
            Thread.CurrentThread.CurrentCulture   = new CultureInfo("en-US");
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var xpathDialog = new XPathForm();
            var importJson  = new ImportJson();
            var form1       = new Form1(xpathDialog, importJson, new XsltTransformation());

            Application.Run(form1);
        }