Beispiel #1
0
        List <ResultStatusMessage> getResultStatusMessage(IEnumerable <IGrouping <String, Tuple <String, Double> > > messages, DisplayUnitType xInternalDisplayUnitType)
        {
            List <ResultStatusMessage> resultStatusMessages = new List <ResultStatusMessage>();

            foreach (IGrouping <String, Tuple <String, Double> > message in messages)
            {
                ResultStatusMessage msg = new ResultStatusMessage();
                msg.Message.Add(new ResultStatusMessageItem(message.Key));
                msg.Message.Add(new ResultStatusMessageItem(" " + Resources.ResourceManager.GetString("AppliesToSections")));

                foreach (Tuple <String, Double> s in message)
                {
                    msg.Message.Add(new ResultStatusMessageItem(UnitType.UT_Length, xInternalDisplayUnitType, (double)s.Item2));
                    msg.Message.Add(new ResultStatusMessageItem("; "));
                }
                resultStatusMessages.Add(msg);
            }
            return(resultStatusMessages);
        }
Beispiel #2
0
 /// <summary>
 /// Adds the formated warning to cref="Status".
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="notify">if set to <c>true</c> [notify].</param>
 public void AddFormatedWarning(ResultStatusMessage message, bool notify = true)
 {
     Status.AddWarning(message, document, notify);
 }
Beispiel #3
0
 /// <summary>
 /// Adds the formated error to cref="Status".
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="notify">if set to <c>true</c> [notify].</param>
 public void AddFormatedError(ResultStatusMessage message, bool notify = true)
 {
     Status.AddError(message, document, notify);
 }