internal void SetVehicle(DataModel.AnalyseRecord tmp) { if (m_viewModel == null) { m_viewModel = new SingleResultDetailViewModel(); } if (tmp == null) { Clear(); } else { Init(tmp); } simpleButtonPriv.Enabled = m_viewModel.IsCanPriv(vehicleID); simpleButtonNext.Enabled = m_viewModel.IsCanNext(vehicleID); }
public void SetAnalyseResults(List <AnalyseRecord> results) { m_viewModel = new SingleResultDetailViewModel(); m_viewModel.AnalyseResults = m_analyseResults = results; }