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 SelectedConcMat(ChangeEventArgs e) { foreach (var mat in dovConcMatLibrary) { if (mat.Name == e.Value.ToString()) { concMat = new DovConcMat() { Name = mat.Name, UnitWt = mat.UnitWt, Fck = mat.Fck, PoissonRatio = mat.PoissonRatio, St = mat.St, E = mat.E }; } } }
protected void ShowConcMatProp(ChangeEventArgs e) { foreach (var mat in dovConcMatLibrary) { if (mat.Name == e.Value.ToString()) { concMat = new DovConcMat() { Name = mat.Name, UnitWt = mat.UnitWt, Fck = mat.Fck, PoissonRatio = mat.PoissonRatio, E = mat.E, St = mat.St }; } } displayConcMat = "dovShow"; }