private DataManagerClient GetDM(DMLocation location) { //TODO: lookup client in dictionary //return _dmClientLookup[location]; DataManagerClient client = new DataManagerClient("Endpoint1", "localhost:5432"); return client; }
private DataManagerClient GetDM(DMLocation location) { //TODO: lookup client in dictionary //return _dmClientLookup[location]; DataManagerClient client = new DataManagerClient("Endpoint1", "localhost:5432"); return(client); }
private void OnLoadEvents() { TrainMethods.EventsRegister(); DataManagerClient.EventsRegister(); RAGLINKCommons.RPlatform.ProjectLoader.TrainDataLoaderEvent += LoadTrain; RAGLINKCommons.RPlatform.ProjectLoader.RouteDataLoaderEvent += LoadRoute; RAGLINKCommons.RPlatform.ProjectLoader.GraphicOptionsLoaderEvent += ApplyGraphicOptions; RAGLINKCommons.RPlatform.ProjectLoader.StartSimulatorEvent += StartSimulator; UpdatePlanFileList(); labelVersion.Text = "API 版本:" + RAGLINKCommons.RPlatform.SettingsContent.simulatorVersion.ToString(); RAGLINKCommons.RPlatform.PackagesManager.UpdatePackageList(); RAGLINKCommons.RPlatform.ControlObjects.ResetControlObjects(); RAGLINKCommons.RPlatform.ControlObjects.UpdateControlObjectsItem(); }