public IngredientData(string Tag = null) : base(Tag) { Value = new Int32(); Flags = new IngredientFlags(); Unused = new byte[3]; }
} //Readonly //Methods public static IngredientFlags ChangeIngredientFlagField(string DisplayFieldToBeChanged) { IngredientFlags FieldToBeChanged; IngredientFlags ReturnValueFlag = 0; string InputString; Console.Write("Neuer Eintrag für {0}: ", DisplayFieldToBeChanged); for (int i = 1; i <= Ingredient.GetmaxIngredientFlag(); i = (i * 2)) { Console.Write("{0,15}:", (IngredientFlags)i); InputString = Console.ReadLine(); if (InputString.Length > 0) { ReturnValueFlag = (ReturnValueFlag | (IngredientFlags)i); } } FieldToBeChanged = ReturnValueFlag; return(FieldToBeChanged); }// --> View
public IngredientData(Int32 Value, IngredientFlags Flags, Byte[] Unused) { this.Value = Value; this.Flags = Flags; this.Unused = Unused; }
public Ingredient(string Name, IngredientFlags IngredientType, UnitSet UnitSetData) { _UnitSetData = UnitSetData; _Name = Name; _Flags = IngredientType; }