/// <summary> /// Uses the TableComparison object to determine which properties belong to each profile in /// this view's table, and creates the appropriate viewmodels for each. /// </summary> public void PopulateProperties() { if (_tableComp.LeftTable != null) { foreach (TableProperty prop in _tableComp.LeftTable.Properties) { DbPropertyComparisonViewModel propVm = new DbPropertyComparisonViewModel(prop.Name, true, false); Properties.Add(propVm); } } if (_tableComp.RightTable != null) { foreach (TableProperty prop in _tableComp.RightTable.Properties) { DbPropertyComparisonViewModel propVm = new DbPropertyComparisonViewModel(prop.Name, false, true); Properties.Add(propVm); } } }