Exemple #1
0
 public ByteStorage(ItemBase item, String columnName, FieldCategory fieldType)
 {
     Name = columnName;
     this.item = item;
     this.item.Fields.Add(this);
     FieldType = fieldType;
 }
 public DateTimeStorage(ItemBase item, String columnName, FieldCategory fieldType, Boolean isDateFormat)
 {
     Name      = columnName;
     this.item = item;
     this.item.Fields.Add(this);
     FieldType         = fieldType;
     this.isDateFormat = isDateFormat;
 }
 public DateTimeStorage(ItemBase item, String columnName, FieldCategory fieldType, Boolean isDateFormat)
 {
     Name = columnName;
     this.item = item;
     this.item.Fields.Add(this);
     FieldType = fieldType;
     this.isDateFormat = isDateFormat;
 }
Exemple #4
0
    public static string ConvertFieldCategoryToString(FieldCategory _fieldCategory)
    {
        switch (_fieldCategory)
        {
        case FieldCategory.Grass:
            return("Grass");

        case FieldCategory.Desert:
            return("Desert");

        case FieldCategory.Jungle:
            return("Jungle");

        case FieldCategory.Mine:
            return("Mine");

        default:
            return("");
        }
    }
 public DateTimeStorage(ItemBase item, String columnName, FieldCategory fieldType)
     : this(item, columnName, fieldType, false)
 {
 }
 public DateTimeStorage(ItemBase item, String columnName, FieldCategory fieldType)
     : this(item, columnName, fieldType, false)
 {
 }
Exemple #7
0
 public void AddFieldCategory(FieldCategory fieldCategory)
 {
     _context.FieldCategories.Add(fieldCategory);
     _context.SaveChanges();
 }