/// <summary> /// This class is dedicated to holding the information parsed from the Steps table by row. /// </summary> /// <param name="name"></param> /// <param name="type"></param> /// <param name="stepNum"></param> /// <param name="stepDesc"></param> /// <param name="active"></param> public StepsRow(string name, int stepNum, string stepDesc, EnumContainer.ActivityLevel active) { Name = name; StepNum = stepNum; StepDescription = stepDesc; Active = active; }
/// <summary> /// This class is dedicated to holding the information parsed from the Ingredients table by row. /// </summary> /// <param name="name"></param> /// <param name="ingredient"></param> /// <param name="unitCount"></param> /// <param name="unit"></param> /// <param name="active"></param> public IngredientsRow(string name, string ingredient, int unitCount, string unit, EnumContainer.ActivityLevel active) { Name = name; Ingredient = ingredient; UnitCount = unitCount; Unit = unit; Active = active; }
/// <summary> /// This class is dedicated to holding the information parsed from the MenuItem table by row. /// </summary> /// <param name="name"></param> /// <param name="type"></param> /// <param name="numSteps"></param> /// <param name="path"></param> /// <param name="active"></param> public MenuItemRow(string name, EnumContainer.Type type, int numSteps, string tags, EnumContainer.ActivityLevel active) { Name = name; Type = type; NumSteps = numSteps; Tags = tags; Active = active; }
/// <summary> /// This class is dedicated to holding the information parsed from the Images table by row. /// </summary> /// <param name="bytes"></param> /// <param name="img"></param> public ImageRow(string name, byte[] bytes, Image img, EnumContainer.ActivityLevel active) { Name = name; Bytes = bytes; Img = img; Active = active; if (bytes == null) { Bytes = ImageToByte(Img, System.Drawing.Imaging.ImageFormat.Jpeg); } else if (img == null) { Img = ByteToImage(Bytes); } }