예제 #1
0
        public MainForm(string[] args)
        {
            InitializeComponent();

            app = new MainApplication(args);
            IConfig cfg = app.ConfigSource.Configs["PeerInfo"];

            if (cfg != null)
            {
                peerName        = cfg.Get("PeerName", "NoNamePeer");
                peerDescription = cfg.Get("PeerDescription", "A generic peer description");
            }
            this.Text = "Main Application for " + peerName + " : " + peerDescription;
            OnTraceOn(null, null);
            // Log an info level message
            if (log.IsDebugEnabled)
            {
                System.Threading.Thread.CurrentThread.Name = "Main(" + System.Threading.Thread.CurrentThread.ManagedThreadId + ")";
                log.Debug("Tests Server Start");
            }
            // Write output to the file and to the console screen.
            if (log.IsInfoEnabled)
            {
                log.Info("Welcome to the Sxta Test Kit !");
            }

            if (rtiAmbassador == null)
            {
                rtiAmbassador = new XrtiExecutiveAmbassador(app.ConfigSource);
            }
            OnLoadPlugins();

            showRightToLeft.Checked                 = (RightToLeft == RightToLeft.Yes);
            RightToLeftLayout                       = showRightToLeft.Checked;
            m_objectModelExplorer                   = new ObjectModelExplorer(rtiAmbassador.descriptorManager);
            m_objectModelExplorer.PropertyGrid      = m_propertyWindow;
            m_objectModelExplorer.RightToLeftLayout = RightToLeftLayout;
            m_deserializeDockContent                = new DeserializeDockContent(GetContentFromPersistString);
        }
예제 #2
0
        public MainForm(string[] args)
        {
            InitializeComponent();

            app = new MainApplication(args);
            IConfig cfg = app.ConfigSource.Configs["PeerInfo"];
            if (cfg != null)
            {
                peerName = cfg.Get("PeerName", "NoNamePeer");
                peerDescription = cfg.Get("PeerDescription", "A generic peer description");
            }
            this.Text = "Main Application for " + peerName + " : " + peerDescription;
            OnTraceOn(null, null);
            // Log an info level message
            if (log.IsDebugEnabled)
            {
                System.Threading.Thread.CurrentThread.Name = "Main(" + System.Threading.Thread.CurrentThread.ManagedThreadId + ")";
                log.Debug("Tests Server Start");
            }
            // Write output to the file and to the console screen.
            if (log.IsInfoEnabled)
                log.Info("Welcome to the Sxta Test Kit !");

            if (rtiAmbassador == null)
                rtiAmbassador = new XrtiExecutiveAmbassador(app.ConfigSource);
            OnLoadPlugins();

            showRightToLeft.Checked = (RightToLeft == RightToLeft.Yes);
            RightToLeftLayout = showRightToLeft.Checked;
            m_objectModelExplorer = new ObjectModelExplorer(rtiAmbassador.descriptorManager);
            m_objectModelExplorer.PropertyGrid = m_propertyWindow;
            m_objectModelExplorer.RightToLeftLayout = RightToLeftLayout;
            m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
        }