public String GetCopyToClipboardText(string unitName, string unitValue)
        {
            StringBuilder result = new StringBuilder();

            IUnit        sourceUnit   = null;
            WebUnitGroup webUnitGroup = null;

            UnitID?unitID = unitName.GetUnitID();

            if (unitID.HasValue)
            {
                sourceUnit   = WebManager.GetUnit(unitID.Value);
                webUnitGroup = _webman.WebUnitGroups.FirstOrDefault(p => p.UnitType == sourceUnit.Type);
            }

            var formattedUnits = new List <FormattedUnit>();

            if (webUnitGroup != null)
            {
                result.AppendLine(webUnitGroup.GroupName);
                result.AppendLine(webUnitGroup.Description);
                result.AppendLine();

                formattedUnits = Recalculate(unitName, unitValue);

                foreach (FormattedUnit formattedUnit in formattedUnits)
                {
                    if (formattedUnit.UnitType.GetUnitType() == sourceUnit.Type)
                    {
                        result.AppendFormat("{0}:\t{1}{2}", formattedUnit.FriendlyUnitName, formattedUnit.UnitValue, formattedUnit.UnitSymbol);
                        result.AppendLine();
                    }
                }

                result.AppendLine();
                result.Append("https://www.unitcandy.com?" + unitValue + unitName);
                result.AppendLine();
            }
            else
            {
                result.AppendLine("UnitCandy");
                result.AppendLine();
                result.AppendLine("UnitCandy is trying to help you with your everyday unit conversion needs. It contains many units of measurement commonly encountered and converts them to other units fast and accurate. UnitCandy was designed to be nice-looking and user friendly.");
                result.AppendLine();
            }

            return(result.ToString());
        }
 /// <summary>
 /// Initializes an UnitGroupControl object using information from an WebUnitGroup.
 /// Initialize() is the preferred way of setting properties.
 /// </summary>
 /// <param name="webUnitGroup"></param>
 public void Initialize(WebUnitGroup webUnitGroup)
 {
     UnitType    = webUnitGroup.UnitType;
     Title       = webUnitGroup.GroupName;
     Description = webUnitGroup.Description;
 }