private void InitializeOutbound() { _ieCtrlOut = new IEControler(this, this.textBoxOutXML, this.checkBoxOutXML, true); _ieCtrlXSLOut = new IEControler(this, this.textBoxXSLOut, this.checkBoxXSLOut, true); _ieCtrlItemOut = new IEControler(this, this.textBoxXMLItemOut, this.checkBoxXMLItemOut, true); _ieCtrlDataSetOut = new IEControler(this, this.textBoxDataSetItemOut, this.checkBoxDataSetItemOut, true); }
private void InitializeInbound() { _ieCtrlIn = new IEControler(this, this.textBoxInXML, this.checkBoxInXML, true); _ieCtrlXSL = new IEControler(this, this.textBoxXSL, this.checkBoxXSL, true); _ieCtrlItem = new IEControler(this, this.textBoxXMLItem, this.checkBoxXMLItem, true); _ieCtrlDataSet = new IEControler(this, this.textBoxDataSetItem, this.checkBoxDataSetItem, true); using (StreamReader sr = File.OpenText(Program.XMLFileName)) { this.textBoxInXML.Text = sr.ReadToEnd(); } }
private void Form1_Load(object sender, EventArgs e) { _ieCtrlGC = new IEControler(this, this.textBoxGCXml, this.checkBoxGC, true); _ieCtrlIn = new IEControler(this.panelIn, this.textBoxInXML, this.checkBoxIn, true); _ieCtrlOut = new IEControler(this.panelOut, this.textBoxOutXML, this.checkBoxOut, true); _transformer = XMLTransformer.CreateFromFile(Program.XSLFileName); if (_transformer == null) { MessageBox.Show(XMLTransformer.LastErrorInfor); } _transformerOut = XMLTransformer.CreateFromFile(Program.XSLFileNameOut); if (_transformerOut == null) { MessageBox.Show(XMLTransformer.LastErrorInfor); } using (StreamReader sr = File.OpenText(Program.XMLFileName)) { this.textBoxInXML.Text = sr.ReadToEnd(); } }