//Sets for Lists
    public static void AddToFurnitureList(Furniture furn)
    {
        //Initialize the list
        if(FurnitureList == null){ FurnitureList = new List<Furniture>(); }
        if(CategoryList == null){ CategoryList = new List<string>(); }
        //Add Furniture Objects
        FurnitureList.Add(furn);

        if(!CategoryList.Contains(furn.GetCategoryString())){
            CategoryList.Add(furn.GetCategoryString());
            CategoryList.Sort();
        }
    }
예제 #2
0
 public void SetStrings(Furniture furn)
 {
     string Name = "Name:  " +  furn.GetDisplayName();
     string DesignerName = "Designer Name:  " + furn.GetCategoryString();
     string Description = "Description:\n" + furn.GetDescription();
     string Dimensions = "Dimensions:\n" + furn.GetDimensions();
     currentString = Name + "\n\n" + DesignerName + "\n\n" + Description + "\n\n" + Dimensions;
     currentFurniture = furn;
     showGUI = true;
 }