Beispiel #1
0
        public Form1(XPathForm xpathDialog, ImportJson importJson, IXsltTransformation xsltTransformation)
        {
            _xpathDialog        = xpathDialog;
            _importJson         = importJson;
            _xsltTransformation = xsltTransformation;
            InitializeComponent();
            Icon = Resource1.Icon1;

            FixScintillaStyles(TxtXml);
            FixScintillaStyles(TxtXslt);
        }
Beispiel #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);
        }