Example #1
0
        public FormClient()
        {
            InitializeComponent();

            _controler = new SOAPClientControler(Program.Context);

            _ctrlSndMsg = new XmlTabControlControler(this.tabControlSndMsg,
                                                     this.tabPageSndMsgPlain, this.textBoxSndMsg,
                                                     this.tabPageSndMsgTree, this.webBrowserSndMsg);
            _ctrlSndSoap = new XmlTabControlControler(this.tabControlSndSoap,
                                                      this.tabPageSndSoapPlain, this.textBoxSndSoap,
                                                      this.tabPageSndSoapTree, this.webBrowserSndSoap);
            _ctrlRcvSoap = new XmlTabControlControler(this.tabControlRcvSoap,
                                                      this.tabPageRcvSoapPlain, this.textBoxRcvSoap,
                                                      this.tabPageRcvSoapTree, this.webBrowserRcvSoap);
            _ctrlRcvMsg = new XmlTabControlControler(this.tabControlRcvMsg,
                                                     this.tabPageRcvMsgPlain, this.textBoxRcvMsg,
                                                     this.tabPageRcvMsgTree, this.webBrowserRcvMsg);

            _ctrlSampleMsg = new FileComboBoxControler(this.comboBoxSampleMessage,
                                                       Path.Combine(Application.StartupPath, "SampleMessages"), true);
            _ctrlSampleMsg.ItemSelected += delegate(FileComboBoxItem item)
            {
                _ctrlSndMsg.Open(item.FileContent);
            };
            _ctrlSampleMsg.SelectTheFirstItem();

            LoadSetting();
        }
Example #2
0
 public bool Initialize(EntityInitializeArgument arg)
 {
     _context.PreLoading(arg);
     _controler = new SOAPClientControler(_context);
     return(true);
 }