예제 #1
0
파일: Block.cs 프로젝트: vicban3d/Hackaton
 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;
 }
예제 #2
0
파일: GUI.cs 프로젝트: vicban3d/Hackaton
 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);
 }