Example #1
0
        //-----------------------------------------------------------------------------------------------

        private void ManagerMainForm_Load(object sender, EventArgs e)
        {
            //normal startup. not a service
            _container = new  ManagerContainer();
            _container.ReadConfig();

            RefreshUIControls(_container.Config);
            uiStartButton.Focus();
        }
Example #2
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);
        }
Example #3
0
 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
 }
Example #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();
        }
Example #5
0
        private void 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(useDefault);
            Config = mc.Config;
            mc     = null;
        }