public StartupActionAddObject GetStartupActionAddObject() { List <ObjectItemInformationWithQuantity> items = new List <ObjectItemInformationWithQuantity>(); for (int i = 0; i < GIds.Count; i++) { ItemRecord item = ItemRecord.GetItem(GIds[i]); if (item != null) { items.Add(item.GetObjectItemInformationWithQuantity(Quantities[i])); } } return(new StartupActionAddObject(Id, Title, string.Empty, string.Empty, string.Empty, items.ToArray())); }