public MainViewModel()
 {
     LogVM                 = new LogViewModel();
     this.OpenContent      = new OpenViewModel(this, LogVM);
     this.openVM           = new OpenViewModel(this, LogVM);
     this.ConvertContent   = new ConvertViewModel(this, new OpenViewModel(this, LogVM));
     this.ImgChangeContent = new ImgChangeViewModel(LogVM);
     SplitVM               = new SplitViewModel(this, LogVM, (OpenViewModel)OpenContent);
     ListData              = new ObservableCollection <ObjectDetect>();
     this.MergeVM          = new MergeViewModel(this, LogVM, (OpenViewModel)OpenContent);
 }
Exemplo n.º 2
0
 public ConvertViewModel(MainViewModel mainviewmodel, OpenViewModel openviewmodel)
 {
     _mainViewmodel = mainviewmodel;
     _openViewmodel = openviewmodel;
     DoCommand      = new RelayCommand(Do);
 }