Example #1
0
 public Field addField(String name, String type, String info, String description)
 {
     Field newField;
     if (type.Equals("fixed")) newField = new FixedField(name, info, description);
     else if (type.Equals("delimited")) newField = new DelimField(name, info, description);
     else if (type.Equals("dependent")) newField = new DependField(name, info, description);
     else if (type.Equals("multi")) newField = new MultiField(name, info, description);
     else return null;
     data.AddLast(newField);
     return newField;
 }
Example #2
0
 public void drawData(MultiField data)
 {
     string keys = "";
     foreach (Key key in data.getKeys())
     {
         keys += key.getValue() + "\r\n" + key.getDescription() + "\r\n\r\n";
     }
     keys = "\r\n\r\nMay be equal to one of the following values:\r\n" + keys;
     createLabel(data.getName(), data.getDescription() + keys);
 }