/// <summary>Renders the selectable Rules</summary>
    private void RenderLimit()
    {
        var limitCollection = ProbabilitySeverityRange.All(this.Company.Id);
        var limitList       = new StringBuilder();
        var probabilityList = new StringBuilder();
        var severityList    = new StringBuilder();

        probabilityList.Append(string.Format(CultureInfo.InvariantCulture, @"<option value=""0"">{0}</option>", this.Dictionary["Common_SelectOne"]));
        probabilityList.Append(string.Format(CultureInfo.InvariantCulture, @"<optgroup label=""Probability"">", this.Dictionary["Common_SelectOne"]));
        severityList.Append(string.Format(CultureInfo.InvariantCulture, @"<optgroup label=""Severity"">", this.Dictionary["Common_SelectOne"]));
        foreach (var limit in limitCollection.OrderBy(limit => limit.Code))
        {
            if (limit.Type == ProbabilitySeverityRange.ProbabilitySeverityType.Probability)
            {
                probabilityList.Append(string.Format(CultureInfo.InvariantCulture, @"<option value=""{0}"">{1}</option>", limit.Id, limit.Description));
            }
            else
            {
                severityList.Append(string.Format(CultureInfo.InvariantCulture, @"<option value=""{0}"">{1}</option>", limit.Id, limit.Description));
            }
        }

        limitList.Append(probabilityList);
        limitList.Append(severityList);
    }
    /// <summary>Renders the selectable ProbabilitySeverityRanges</summary>
    private void RenderProbabilitySeverity()
    {
        var probabilitySeverityCollection = ProbabilitySeverityRange.GetActive(this.Company.Id);
        var severityList = new StringBuilder();

        severityList.Append(string.Format(CultureInfo.InvariantCulture, @"<option value=""0"">{0}</option>", this.Dictionary["Common_SelectOne"]));
        var probabilityList = new StringBuilder();

        probabilityList.Append(string.Format(CultureInfo.InvariantCulture, @"<option value=""0"">{0}</option>", this.Dictionary["Common_SelectOne"]));
        foreach (var probabilitySeverity in probabilitySeverityCollection.OrderBy(probabilitySeverity => probabilitySeverity.Code))
        {
            if (probabilitySeverity.Type == ProbabilitySeverityRange.ProbabilitySeverityType.Severity)
            {
                severityList.Append(string.Format(CultureInfo.InvariantCulture, @"<option value=""{0}"">{0} - {1}</option>", probabilitySeverity.Code, probabilitySeverity.Description));
            }
            else
            {
                probabilityList.Append(string.Format(CultureInfo.InvariantCulture, @"<option value=""{0}"">{0} - {1}</option>", probabilitySeverity.Code, probabilitySeverity.Description));
            }
        }
    }