Esempio n. 1
0
 public MainViewModel(
     IGraphFieldFactory fieldFactory,
     IVertexEventHolder eventHolder,
     ISaveLoadGraph saveLoad,
     ConcreteGraphAssembleClasses graphFactories,
     ConcreteAssembleAlgorithmClasses algorithms,
     Logs log)
     : base(fieldFactory, eventHolder, saveLoad,
            graphFactories, algorithms, log)
 {
     IsAppClosureRequested = false;
 }
Esempio n. 2
0
        protected MainModel(IGraphFieldFactory fieldFactory,
                            IVertexEventHolder eventHolder,
                            ISaveLoadGraph saveLoad,
                            IAssembleClasses graphFactories,
                            IAssembleClasses assembleClasses,
                            ILog log)
        {
            this.eventHolder     = eventHolder;
            this.saveLoad        = saveLoad;
            this.fieldFactory    = fieldFactory;
            this.graphFactories  = graphFactories;
            this.assembleClasses = assembleClasses;
            this.log             = log;

            this.graphFactories.LoadClasses();

            Graph = new NullGraph();
        }