/// <summary> /// Initialises a new instance of the <see cref="BodyViewModel"/> class. /// </summary> /// <param name="dataEntryModel"> /// The model object associated with the data entry process. /// </param> /// <param name="dataModel"> /// The model object containing data set. /// </param> /// <param name="fileFactory">beastie file factory</param> /// <param name="logger">the logger</param> public BodyViewModel( IEventEntry dataEntryModel, IDataManager dataModel, IBeastieDataFileFactory fileFactory, IAsLogger logger) { this.configurationViewModel = new ConfigurationViewModel( dataModel, fileFactory); this.consistencyViewModel = new ConsistencyViewModel(); this.reportsViewModel = new ReportsViewModel( dataModel, logger); this.dataEntryViewModel = new DataEntryViewModel( dataEntryModel, dataModel.FindBeastie); this.currentView = this.dataEntryViewModel; Messenger.Default.Register <MainViewMessage>(this, this.ChangeView); }
public DataEntryView( IDataEntryViewModel dataEntryViewModel) { InitializeComponent(); DataContext = dataEntryViewModel; }