public ModelLinkService(
     IModelLineService modelLineService,
     IModelDatabase modelService)
 {
     this.modelLineService = modelLineService;
     this.modelService     = modelService;
 }
 public ModelLineService(
     ILinkSegmentService linkSegmentService,
     ILineViewModelService lineViewModelService,
     IModelDatabase modelDatabase)
 {
     this.linkSegmentService   = linkSegmentService;
     this.lineViewModelService = lineViewModelService;
     this.modelDatabase        = modelDatabase;
 }
예제 #3
0
 public ModelService(
     IModelDatabase modelDatabase,
     IModelNodeService modelNodeService,
     IModelLinkService modelLinkService,
     IModelLineService modelLineService,
     IModelNotificationService modelNotificationService)
 {
     this.modelDatabase            = modelDatabase;
     this.modelNodeService         = modelNodeService;
     this.modelLinkService         = modelLinkService;
     this.modelLineService         = modelLineService;
     this.modelNotificationService = modelNotificationService;
 }
 public LineViewModelService(
     IModelDatabase modelService,
     ILineControlService lineControlService,
     ILineDataService lineDataService,
     ISelectionService selectionService,
     Func <Node, Line, DependencyExplorerWindow> dependencyExplorerWindowProvider)
 {
     this.modelService       = modelService;
     this.lineControlService = lineControlService;
     this.lineDataService    = lineDataService;
     this.selectionService   = selectionService;
     this.dependencyExplorerWindowProvider = dependencyExplorerWindowProvider;
 }
 public NodeService(
     IModelDatabase modelService,
     Lazy <IModelLineService> modelLineService,
     Lazy <IModelLinkService> modelLinkService,
     INodeLayoutService layoutService,
     Lazy <INodeViewModelService> nodeViewModelService)
 {
     this.modelService         = modelService;
     this.modelLineService     = modelLineService;
     this.modelLinkService     = modelLinkService;
     this.layoutService        = layoutService;
     this.nodeViewModelService = nodeViewModelService;
 }
예제 #6
0
        public ModelPersistentHandler(
            IModelDatabase modelDatabase,
            IDataService dataService,
            ModelMetadata metadata)
        {
            this.modelDatabase = modelDatabase;
            this.dataService   = dataService;
            this.metadata      = metadata;

            modelDatabase.DataModified += OnDataModified;

            // Create an "already saved" progress tcs, in case a call is made to SaveAsync()
            saveInProgressTcs = new TaskCompletionSource <bool>();
            saveInProgressTcs.TrySetResult(true);
        }
 public DbGateway(IModelDatabase modelDatabase)
 {
     _modelDatabase = modelDatabase;
     _modelDatabase.Connect("PKSimDB.sqlite");
 }
예제 #8
0
 public SimpleDbGateway(IModelDatabase modelDatabase, IPKSimConfiguration configuration)
 {
     _modelDatabase = modelDatabase;
     _configuration = configuration;
     _modelDatabase.Connect(_configuration.PKSimDbPath);
 }
 public NodeLayoutService(IModelDatabase modelDatabase)
 {
     this.modelDatabase = modelDatabase;
 }