internal BoxSectionPanel(Box box, BoxSection section, TextWriter writer, bool renderAfterInit = true) { Box = box; TextWriter = writer; if (!renderAfterInit) { return; } Render(section); }
protected BoxSectionPanel Render(BoxSection section) { switch (section) { case BoxSection.Tools: TextWriter.Write("<div class=\"box-tools pull-right\">"); break; case BoxSection.Body: TextWriter.Write("<div class=\"box-body\">"); break; case BoxSection.Footer: TextWriter.Write("<div class=\"box-footer\">"); break; } return(this); }
/// <summary> /// 从界面输入参数 /// </summary> /// <param name="item"></param> /// <returns></returns> private BoxSection GetInitData(BoxSection item) { //截面尺寸及计算高度 double height = double.Parse(textBox1.Text); // double width = double.Parse(textBox2.Text); // double tw = double.Parse(textBox3.Text); // double tf = double.Parse(textBox4.Text); // double ly0 = double.Parse(textBox5.Text); // double lz0 = double.Parse(textBox6.Text); // //顺桥向配筋 double AreaUp = double.Parse(textBox11.Text); double OffsetUp = double.Parse(textBox12.Text); double AreaDown = double.Parse(textBox13.Text); double OffsetDown = double.Parse(textBox14.Text); //横桥向配筋 double AreaLeft = double.Parse(textBox15.Text); double OffsetLeft = double.Parse(textBox16.Text); double AreaRight = double.Parse(textBox17.Text); double OffsetRight = double.Parse(textBox18.Text); //截面尺寸及计算高度 item.Concgrade = GetNumber(comboBox1.Text); item.Steelgrade = GetNumber(comboBox2.Text); item.SafetyFactor = GetNumber(comboBox4.Text) / 10.0; item.m_Width = width; item.m_Height = height; item.m_Tw = tw; item.m_Tf = tf; item.m_Ly0 = ly0; item.m_Lz0 = lz0; //顺桥向配筋 item.m_AreaUp = AreaUp; item.m_OffsetUp = OffsetUp; item.m_AreaDown = AreaDown; item.m_OffsetDown = OffsetDown; //横桥向配筋 item.m_AreaLeft = AreaLeft; item.m_OffsetLeft = OffsetLeft; item.m_AreaRight = AreaRight; item.m_OffsetRight = OffsetRight; // return(item); }