private void ResetTestSuiteFields() { ClearTestSuiteAvailableFields(); foreach (var field in m_wizardInfo.DataSourceParser.StorageInfo.FieldNames) { bool isFieldAvailable = true; foreach (var row in FieldMappingRows) { if (row.WIField != null && String.CompareOrdinal(field.FieldName, row.DataSourceField) == 0) { isFieldAvailable = false; break; } } if (isFieldAvailable) { AddTestSuiteAvailableField(field.FieldName); } } TestSuiteField = Resources.SelectPlaceholder; if (TestSuiteAvailableFields.Contains(m_wizardInfo.RelationshipsInfo.TestSuiteField)) { TestSuiteField = m_wizardInfo.RelationshipsInfo.TestSuiteField; } }
private void RemoveTestSuiteAvailableFieldInUIContext(object obj) { string fieldName = obj as string; if (!string.IsNullOrEmpty(fieldName) && TestSuiteAvailableFields.Contains(fieldName)) { TestSuiteAvailableFields.Remove(fieldName); } }