private StackLayout FillHopup(string fullPath) { Label propertyTitle; Label property; Label compatibileWeaponsTitle; optics = CreateOpticsFromData(fullPath); string[,] hopupresults = optics.ReturnProperty(); propertyTitle = new Label { Text = hopupresults[0, 0] }; property = new Label { Text = hopupresults[0, 1] }; compatibileWeaponsTitle = new Label { Text = hopupresults[1, 0] }; layout.Children.Add(SetTitleLabelProperties(propertyTitle)); layout.Children.Add(SetLabelProperties(property)); layout.Children.Add(SetTitleLabelProperties(compatibileWeaponsTitle)); return(layout); }
private Optics CreateOpticsFromData(string resourcePath) { ResourceManager resourceManager = new ResourceManager(resourcePath, Assembly.GetExecutingAssembly()); Optics result; string description = resourceManager.GetString("description"); string compatibileWeapons = resourceManager.GetString("compatibileWeapons"); result = new Optics(description, compatibileWeapons); return(result); }