public bool Add_underlayDefinition(cls_underlayDefinition n_underlayDefinition) { n_underlayDefinition.setParent(this); n_underlayDefinition.setOwner(__owner); m_underlayDefinition.Add(n_underlayDefinition.M_id, n_underlayDefinition); return(true); }
public underlayDraw(cls_underlayDefinition def) : this(1, false, 1, false) { if (def != null) { this.decadesAcross = def.M_decadesAcross; this.logAcross = def.M_logAcross; this.decadesDown = def.M_decadesDown; this.logDown = def.M_logDown; minBorder = 20; pos = def.M_position; } }
public override cls_DTTPresentation_part startElement(int elementid, Dictionary <string, string> atts, string nsuri, string elementname) { switch (elementid) { case DTTPresentation_parser.ID_slide: cls_slide tmp_slide = new cls_slide(this); tmp_slide.parseAttributes(atts); m_page.Add(tmp_slide); return(tmp_slide); //break; case DTTPresentation_parser.ID_application: cls_application tmp_application = new cls_application(this); tmp_application.parseAttributes(atts); m_page.Add(tmp_application); return(tmp_application); //break; case DTTPresentation_parser.ID_board: cls_board tmp_board = new cls_board(this); tmp_board.parseAttributes(atts); m_page.Add(tmp_board); return(tmp_board); //break; case DTTPresentation_parser.ID_web: cls_web tmp_web = new cls_web(this); tmp_web.parseAttributes(atts); m_page.Add(tmp_web); return(tmp_web); //break; case DTTPresentation_parser.ID_penSet: cls_penSet tmp_penSet = new cls_penSet(this); tmp_penSet.parseAttributes(atts); m_penSet.Add(tmp_penSet.M_id, tmp_penSet); return(tmp_penSet); //break; case DTTPresentation_parser.ID_underlayDefinition: cls_underlayDefinition tmp_underlayDefinition = new cls_underlayDefinition(this); tmp_underlayDefinition.parseAttributes(atts); m_underlayDefinition.Add(tmp_underlayDefinition.M_id, tmp_underlayDefinition); return(tmp_underlayDefinition); //break; default: throw new Exception("Unexpected element " + elementname + " in DTTPresentation"); //break; } //return this; }