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 }
//----------------------------------------------------------------------------------------------- private void ManagerMainForm_Load(object sender, EventArgs e) { //normal startup. not a service _container = new ManagerContainer(); _container.ReadConfig(); RefreshUIControls(_container.Config); uiStartButton.Focus(); }
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; }
//----------------------------------------------------------------------------------------------- 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(); }