protected override void OnInitialized() { concMat = new DovConcMat() { Name = "25MPa", UnitWt = 25, Fck = 25, PoissonRatio = 0.2f, E = 29000 }; dovConcMatLibrary.Add(concMat); concMat = new DovConcMat() { Name = "15MPa", UnitWt = 25, Fck = 15, PoissonRatio = 0.2f, E = 29000 }; dovConcMatLibrary.Add(concMat); rebarMat = new DovRebarMat() { Name = "355MPa", UnitWt = 78.5f, Fyk = 355, PoissonRatio = 0.3f, E = 200000 }; dovRebarMatLibrary.Add(rebarMat); rebarMat = new DovRebarMat() { Name = "400MPa", UnitWt = 78.5f, Fyk = 400, PoissonRatio = 0.3f, E = 200000 }; dovRebarMatLibrary.Add(rebarMat); DovRebarLocation rLoc = new DovRebarLocation(1, 16, -67, -167); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(2, 16, 67, -167); rebarLocLibrary.Add(rLoc); }
protected override void OnInitialized() { Point3 pt = new Point3(); test5[0] = pt; concMat = new DovConcMat() { Name = "25MPa", UnitWt = 25, Fck = 25, PoissonRatio = 0.2f, E = 29000 }; dovConcMatLibrary.Add(concMat); concMat = new DovConcMat() { Name = "15MPa", UnitWt = 25, Fck = 15, PoissonRatio = 0.2f, E = 29000 }; dovConcMatLibrary.Add(concMat); rebarMat = new DovRebarMat() { Name = "355MPa", UnitWt = 78.5f, Fyk = 355, PoissonRatio = 0.3f, E = 200000 }; dovRebarMatLibrary.Add(rebarMat); rebarMat = new DovRebarMat() { Name = "400MPa", UnitWt = 78.5f, Fyk = 400, PoissonRatio = 0.3f, E = 200000 }; dovRebarMatLibrary.Add(rebarMat); DovRebarLocation rLoc = new DovRebarLocation(1, 16, -67, -167); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(2, 16, 67, -167); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(3, 16, 67, -117); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(4, 16, -67, -117); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(5, 16, 67, -67); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(6, 16, -67, -67); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(7, 16, 67, 0); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(8, 16, -67, 0); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(9, 16, 67, 167); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(10, 16, -67, 167); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(11, 16, 67, 117); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(12, 16, -67, 117); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(13, 16, 67, 67); rebarLocLibrary.Add(rLoc); rLoc = new DovRebarLocation(14, 16, -67, 67); rebarLocLibrary.Add(rLoc); }
protected void SelectedRebarMat(ChangeEventArgs e) { foreach (var rebar in dovRebarMatLibrary) { if (rebar.Name == e.Value.ToString()) { rebarMat = new DovRebarMat(rebar.Name, rebar.UnitWt, rebar.Fyk, rebar.PoissonRatio, rebar.E) { Name = rebar.Name, UnitWt = rebar.UnitWt, Fyk = rebar.Fyk, PoissonRatio = rebar.PoissonRatio, St = rebar.St }; } } }
protected void ShowRebarMatProp(ChangeEventArgs e) { foreach (var rebar in dovRebarMatLibrary) { if (rebar.Name == e.Value.ToString()) { rebarMat = new DovRebarMat() { Name = rebar.Name, UnitWt = rebar.UnitWt, Fyk = rebar.Fyk, PoissonRatio = rebar.PoissonRatio, E = rebar.E, St = rebar.St }; } } displayRebarMat = "dovShow"; }