Пример #1
0
        public FormTest()
        {
            InitializeComponent();

            _logger    = new VirtualLogger(this);
            _sender    = new VirtualMessageSender(this);
            _controler = new MessagePipeControler(_sender, _logger);
            _controler.InitializeChannels();

            _ctlRcvIn = new XmlTabControlControler(tabControlRevIn,
                                                   tabPageRevInPlain, textBoxRevIn, tabPageRevInTree, webBrowserRevIn);
            _ctlRcvOut = new XmlTabControlControler(tabControlRevOut,
                                                    tabPageRevOutPlain, textBoxRevOut, tabPageRevOutTree, webBrowserRevOut);
            _ctlSndOut = new XmlTabControlControler(tabControlSndOut,
                                                    tabPageSndOutPlain, textBoxSndOut, tabPageSndOutTree, webBrowserSndOut);
            _ctlSndIn = new XmlTabControlControler(tabControlSndIn,
                                                   tabPageSndInPlain, textBoxSndIn, tabPageSndInTree, webBrowserSndIn);

            _ctrlSampleMsg = new FileComboBoxControler(this.comboBoxMsg,
                                                       Path.Combine(Application.StartupPath, "SampleMessages"), true);
            _ctrlSampleMsg.ItemSelected += delegate(FileComboBoxItem item)
            {
                _ctlRcvIn.Open(item.FileContent);
            };
            _ctrlSampleMsg.SelectTheFirstItem();
        }
Пример #2
0
 public bool Initialize(EntityInitializeArgument arg)
 {
     Program.PreLoading(arg);
     _controler = new MessagePipeControler(this, Program.Log);
     return(_controler.InitializeChannels());
 }