public ManagerContainerWrapper()
 {
     ManagerContainer.ManagerStartEvent += new ManagerStartStatusEventHandler(this.Manager_StartStatusEvent);
     _container = new ManagerContainer();
     _container.RemotingConfigFile = "eduGRID_ManagerApp.exe.config";
     _container.ReadConfig(false, AppDomain.CurrentDomain.BaseDirectory, "eduGRIDManager.config.xml");
     Config = _container.Config;
     //After this is initialized, Application should read Config and fill up ui with default values
 }
Beispiel #2
0
        //-----------------------------------------------------------------------------------------------
        private void ManagerMainForm_Load(object sender, EventArgs e)
        {
            //normal startup. not a service
            _container = new  ManagerContainer();
            _container.ReadConfig();

            RefreshUIControls(_container.Config);
            uiStartButton.Focus();
        }
Beispiel #3
0
 private Configuration ReadManagerConfig(bool useDefault)
 {
     //in case it is a service, the container would be null since we dont need it really.
     //but we still need to get the config from it, so create a new one and read the config.
     ManagerContainer mc = new ManagerContainer();
     mc.ReadConfig();
     return mc.Config;
 }
Beispiel #4
0
        //-----------------------------------------------------------------------------------------------
        private void ManagerMainForm_Load(object sender, EventArgs e)
        {
            //normal startup. not a service
            _container = new  ManagerContainer();
            _container.ReadConfig(false);
            Config = _container.Config;

            RefreshUIControls();
            btStart.Focus();
        }