예제 #1
0
 public InfoCollection(string db, string tbl, string fld, InfoCollectionViewTypes mode)
 {
     ViewMode     = mode;
     databaseName = db;
     tableName    = tbl;
     fieldName    = fld;
 }
예제 #2
0
        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;
            }
        }
예제 #3
0
        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;
            }
        }