Ejemplo n.º 1
0
 public static Line CreateLie(string name)
  {
      Line line=null;
      switch (name)
      { 
          case "Arrow":
              line= new ArrowLine();
              break;
          case "Label":
              line=new LabelLine();
              break;
      }
      return line;
  }
Ejemplo n.º 2
0
        public static Line CreateLie(string name)
        {
            Line line = null;

            switch (name)
            {
            case "Arrow":
                line = new ArrowLine();
                break;

            case "Label":
                line = new LabelLine();
                break;
            }
            return(line);
        }