public InfoCollection(string db, string tbl, string fld, InfoCollectionViewTypes mode) { ViewMode = mode; databaseName = db; tableName = tbl; fieldName = fld; }
public InfoCollection(string input, InfoCollectionViewTypes mode) { switch (ViewMode = mode) { case InfoCollectionViewTypes.Database: DatabaseName = input; break; case InfoCollectionViewTypes.Table: TableName = input; break; case InfoCollectionViewTypes.Field: FieldName = input; break; } }
public InfoCollection(string field1, string field2, InfoCollectionViewTypes mode) { switch (viewMode = mode) { case InfoCollectionViewTypes.DatabaseTable: DatabaseName = field1; TableName = field2; break; case InfoCollectionViewTypes.TableField: TableName = field1; FieldName = field2; break; } }