All pastes #252846 Raw Edit

Miscellany

public text v1 · immutable
#252846 ·published 2006-11-20 00:48 UTC
rendered paste body
                if (this.Name == null)
                {

                    if (m_Amount <= 1)
                        ns.Send(new AsciiMessage(this.m_Serial, this.m_ItemID, MessageType.Label, 0x3b2, 3, "", ClilocTranslator.ClilocStringList[LabelNumber].ToString()));
                    else
                    {
//IS THIS TO MUCH
                        string toDisplay = string.Format("{0} {1}", this.m_Amount, ClilocTranslator.ClilocStringList[LabelNumber].ToString());
                        
                        if (toDisplay.ToLower()[toDisplay.Length-1] != 's')
                            toDisplay += "s";

//IS THIS TO MUCH END

                        ns.Send(new AsciiMessage(this.m_Serial, this.m_ItemID, MessageType.Label, 0x3b2, 3, "", toDisplay));
                    }