Beispiel #1
0
        public MainForm()
        {
            InitializeComponent();
            this.LoadBusinessObjectTypes();
            this.LoadAllWebMethods();
            this.txtBoxXmlRaw            = new TextBox();
            this.txtBoxXmlRaw.MaxLength  = 0;
            this.txtBoxXmlRaw.Dock       = DockStyle.Fill;
            this.txtBoxXmlRaw.Multiline  = true;
            this.txtBoxXmlRaw.ScrollBars = ScrollBars.Vertical;
            this.txtBoxXmlRaw.KeyPress  += new KeyPressEventHandler(txtBox_SelectAll);
            this.tabPageRawXml.Controls.Add(this.txtBoxXmlRaw);

            this.txtBoxXml           = new XmlTextBox();
            this.txtBoxXml.Dock      = DockStyle.Fill;
            this.txtBoxXml.KeyPress += new KeyPressEventHandler(txtBox_SelectAll);
            this.tabPageXmlTreeView.Controls.Add(this.txtBoxXml);

            this.shtb           = new SyntaxHighlightingTextBox();
            this.shtb.Multiline = true;
            this.shtb.Dock      = DockStyle.Fill;

            shtb.Seperators.Add(' ');
            shtb.Seperators.Add('\r');
            shtb.Seperators.Add('\n');
            shtb.Seperators.Add(',');
            shtb.Seperators.Add('.');
            shtb.Seperators.Add(')');
            shtb.Seperators.Add('(');
            shtb.Seperators.Add(']');
            shtb.Seperators.Add('[');
            shtb.Seperators.Add('}');
            shtb.Seperators.Add('{');
            shtb.Seperators.Add('+');
            shtb.Seperators.Add('=');
            shtb.Seperators.Add('\t');
            Font f = new Font("Courier New", 9);

            shtb.AddHighlightDescriptor(DescriptorRecognition.RegEx, "<.+?>", DescriptorType.Word, Color.Green, f, false);

            this.tabPageHighlighted.Controls.Add(this.shtb);

            this.cboxType.SelectedIndex = 5;
            this.txtBoxTemplate.Text    = "";
            this.txtBoxSource.Text      = @"";

            this.tabControlMain.SelectedIndex = 0;
            this.lastTabPage = this.tabControlMain.SelectedTab;
            this.cboxMethodName.SelectedIndex = 0;
        }
Beispiel #2
0
        private MessageBoxForm(string msg)
        {
            InitializeComponent();

            this.txtBoxXmlRaw            = new TextBox();
            this.txtBoxXmlRaw.Dock       = DockStyle.Fill;
            this.txtBoxXmlRaw.Multiline  = true;
            this.txtBoxXmlRaw.ScrollBars = ScrollBars.Vertical;
            this.txtBoxXmlRaw.KeyPress  += new KeyPressEventHandler(txtBox_SelectAll);
            this.tabPageRawXml.Controls.Add(this.txtBoxXmlRaw);

            this.txtBoxXml            = new XmlTextBox();
            this.txtBoxXml.Dock       = DockStyle.Fill;
            this.txtBoxXml.Multiline  = true;
            this.txtBoxXml.ScrollBars = ScrollBars.Vertical;
            this.txtBoxXml.KeyPress  += new KeyPressEventHandler(txtBox_SelectAll);
            this.tabPageXmlTreeView.Controls.Add(this.txtBoxXml);

            this.shtb           = new SyntaxHighlightingTextBox();
            this.shtb.Multiline = true;
            this.shtb.Dock      = DockStyle.Fill;

            shtb.Seperators.Add(' ');
            shtb.Seperators.Add('\r');
            shtb.Seperators.Add('\n');
            shtb.Seperators.Add(',');
            shtb.Seperators.Add('.');
            shtb.Seperators.Add(')');
            shtb.Seperators.Add('(');
            shtb.Seperators.Add(']');
            shtb.Seperators.Add('[');
            shtb.Seperators.Add('}');
            shtb.Seperators.Add('{');
            shtb.Seperators.Add('+');
            shtb.Seperators.Add('=');
            shtb.Seperators.Add('\t');
            Font f = new Font("Courier New", 9);

            shtb.AddHighlightDescriptor(DescriptorRecognition.RegEx, "<.+?>", DescriptorType.Word, Color.Green, f, false);

            this.tabPageHighlighted.Controls.Add(this.shtb);

            this.tabControlMain.SelectedIndex = 0;
            this.lastTabPage = this.tabControlMain.SelectedTab;

            this.xml = msg;
        }