Example #1
0
        public string toJSON(CSignal signal)
        {
            string json = @"{";

            json += "\"type\": \"" + signal.type + "\", ";
            json += "\"table\": \"" + signal.table + "\", ";
            json += "\"column\": \"" + signal.column + "\", ";
            json += "\"color\": \"" + ColorTranslator.ToHtml(signal.Color).ToString() + "\", ";
            json += "\"decimal\":" + signal.Decimal + "},";

            return(json);
        }
Example #2
0
 public void AddSignal(CSignal aSig)
 {
     SigList.Add(aSig);
 }