コード例 #1
0
 private DataManagerClient GetDM(DMLocation location)
 {
     //TODO: lookup client in dictionary
     //return _dmClientLookup[location];
     DataManagerClient client = new DataManagerClient("Endpoint1", "localhost:5432");
     return client;
 }
コード例 #2
0
        private DataManagerClient GetDM(DMLocation location)
        {
            //TODO: lookup client in dictionary
            //return _dmClientLookup[location];
            DataManagerClient client = new DataManagerClient("Endpoint1", "localhost:5432");

            return(client);
        }
コード例 #3
0
 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();
 }