예제 #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
파일: Program.cs 프로젝트: sbraer/XsltView
        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);
        }