private void LoadComponent(int startIndex, ComponentBase comp) { try { comp.Name = GetValueLL("Identifier", startIndex); if (String.IsNullOrEmpty(comp.Name)) { comp.CreateUniqueName(); } } catch (DuplicateNameException) { comp.CreateUniqueName(); } comp.Left = UnitsConverter.LLUnitsToPixels(GetValueLL("Position/Left", startIndex)); comp.Top = UnitsConverter.LLUnitsToPixels(GetValueLL("Position/Top", startIndex)); comp.Width = UnitsConverter.LLUnitsToPixels(GetValueLL("Position/Width", startIndex)); comp.Height = UnitsConverter.LLUnitsToPixels(GetValueLL("Position/Height", startIndex)); }