Ejemplo n.º 1
0
        public MainViewModel()
        {
            _running = false;
            _mc      = new MainController(this);

            BuildCommand = new RelayCommand(BuildCircuit, CanBuildCircuit);

            _fileSelectorFactoryAdapter = new FileSelectorAdapter(FileSelectorFactory.GetInstance());

            FileNames = new ObservableCollection <string>(_fileSelectorFactoryAdapter.getNames());
            Inputs    = new ObservableCollection <NodeViewModel>();
            Nodes     = new ObservableCollection <NodeViewModel>();
            Probes    = new ObservableCollection <NodeViewModel>();
        }
Ejemplo n.º 2
0
 public FileSelectorAdapter(FileSelectorFactory fsf)
 {
     _fileSelectorFactory = fsf;
 }