public CommonSection() { OuterLine = null; Rebars = new List <Circle2D>(); PreRebars = new List <Circle2D>(); InnerLines = new List <Polygon2D>(); Xstrip = new List <double[]>(); Ystrip = new List <double[]>(); xs = new List <double>(); ys = new List <double>(); Axs = new List <double>(); Ays = new List <double>(); Conc = new ConcreteProperty(); MRebar = new Reinforcement("HRB400", 400, 1, 1, 0, 0); SRebar = new Reinforcement("HRB400", 400, 1, 1, 0, 0); PrestressProperty = new Prestress("G270", 1860); }
public UTCSViewModel() { _selConcreteList = new Dictionary <int, string>(); _selRebarList = new Dictionary <int, string>(); _selPreRebarList = new Dictionary <int, string>(); _selConcreteList.Add(0, "AASHTO-Fc45"); _selConcreteList.Add(1, "AASHTO-Fc35"); _selConcreteList.Add(2, "JTG-C40"); _selConcreteList.Add(3, "JTG-C50"); _concID = 0; _concrete = new ConcreteProperty(_selConcreteList[_concID]); _selRebarList.Add(0, "HRB400"); _selRebarList.Add(1, "HRB500"); _rebarID = 0; _rebar = new Reinforcement(_selRebarList[_rebarID]); _selPreRebarList.Add(0, "Grade270-12.7"); _selPreRebarList.Add(1, "Grade270-15.2"); _prerebarID = 0; _prerebar = new Prestress(_selPreRebarList[_prerebarID], 1860); commonSection = new CommonSection(); commonSection.Conc = _concrete; commonSection.MRebar = _rebar; commonSection.SRebar = _rebar; commonSection.PrestressProperty = _prerebar; _rebarCollection = GetRebarCollection(ref commonSection); _sectionCollection = GetSectionCollection(ref commonSection); _isVertMoment = true; _isCompression = true; _message = "Hello Kitty"; }