Beispiel #1
0
 /// <summary>
 /// Initialize concrete GwpNameValue list
 /// </summary>
 public void PopulateConcreteGwpList()
 {
     ConcreteGwpList = new List <GwpNameValue>()
     {
         new GwpNameValue("2500-00-FA/SL", 231.1),
         new GwpNameValue("2500-20-FA", 199.7),
         new GwpNameValue("2500-30-FA", 182.7),
         new GwpNameValue("2500-40-FA", 164.9),
         new GwpNameValue("2500-30-SL", 178.1),
         new GwpNameValue("2500-40-SL", 160.5),
         new GwpNameValue("2500-50-SL", 142.9),
         new GwpNameValue("2500-50-FA/SL", 144.0),
         new GwpNameValue("3000-00-FA/SL", 257.7),
         new GwpNameValue("3000-20-FA", 222.1),
         new GwpNameValue("3000-30-FA", 202.9),
         new GwpNameValue("3000-40-FA", 182.6),
         new GwpNameValue("3000-30-SL", 197.7),
         new GwpNameValue("3000-40-SL", 177.7),
         new GwpNameValue("3000-50-SL", 157.8),
         new GwpNameValue("3000-50-FA/SL", 159.0),
         new GwpNameValue("4000-00-FA/SL", 318.1),
         new GwpNameValue("4000-20-FA", 273.0),
         new GwpNameValue("4000-30-FA", 248.6),
         new GwpNameValue("4000-40-FA", 223.0),
         new GwpNameValue("4000-30-SL", 242.1),
         new GwpNameValue("4000-40-SL", 216.8),
         new GwpNameValue("4000-50-SL", 191.4),
         new GwpNameValue("4000-50-FA/SL", 193.0),
         new GwpNameValue("5000-00-FA/SL", 389.2),
         new GwpNameValue("5000-20-FA", 333.0),
         new GwpNameValue("5000-30-FA", 302.7),
         new GwpNameValue("5000-40-FA", 270.6),
         new GwpNameValue("5000-30-SL", 294.4),
         new GwpNameValue("5000-40-SL", 262.8),
         new GwpNameValue("5000-50-SL", 231.2),
         new GwpNameValue("5000-50-FA/SL", 233.2),
         new GwpNameValue("6000-00-FA/SL", 409.9),
         new GwpNameValue("6000-20-FA", 350.5),
         new GwpNameValue("6000-30-FA", 318.4),
         new GwpNameValue("6000-40-FA", 284.5),
         new GwpNameValue("6000-30-SL", 309.7),
         new GwpNameValue("6000-40-SL", 276.4),
         new GwpNameValue("6000-50-SL", 243.0),
         new GwpNameValue("6000-50-FA/SL", 245.1),
         new GwpNameValue("8000-00-FA/SL", 477.2),
         new GwpNameValue("8000-20-FA", 407.2),
         new GwpNameValue("8000-30-FA", 369.4),
         new GwpNameValue("8000-40-FA", 329.5),
         new GwpNameValue("8000-30-SL", 359.2),
         new GwpNameValue("8000-40-SL", 319.8),
         new GwpNameValue("8000-50-SL", 280.5),
         new GwpNameValue("8000-50-FA/SL", 283.2)
     };
     GwpSelectedIndex = 0;
     GwpSelected      = ConcreteGwpList[0];
     gwp      = ConcreteGwpList[0].Value;
     RebarGwp = 714.2;
 }
Beispiel #2
0
 /// <summary>
 /// Initialize concrete GwpNameValue list
 /// </summary>
 public void PopulateConcreteGwpList()
 {
     ConcreteGwpList = new List <GwpNameValue>()
     {
         new GwpNameValue("2500-00-FA/SL", 236.73),
         new GwpNameValue("2500-20-FA", 204.09),
         new GwpNameValue("2500-30-FA", 186.44),
         new GwpNameValue("2500-40-FA", 167.81),
         new GwpNameValue("2500-30-SL", 183.94),
         new GwpNameValue("2500-40-SL", 166.34),
         new GwpNameValue("2500-50-SL", 148.74),
         new GwpNameValue("2500-50-FA/SL", 148.51),
         new GwpNameValue("3000-00-FA/SL", 264.16),
         new GwpNameValue("3000-20-FA", 227.16),
         new GwpNameValue("3000-30-FA", 207.17),
         new GwpNameValue("3000-40-FA", 186.06),
         new GwpNameValue("3000-30-SL", 204.33),
         new GwpNameValue("3000-40-SL", 184.39),
         new GwpNameValue("3000-50-SL", 164.45),
         new GwpNameValue("3000-50-FA/SL", 164.19),
         new GwpNameValue("4000-00-FA/SL", 326.27),
         new GwpNameValue("4000-20-FA", 279.43),
         new GwpNameValue("4000-30-FA", 254.11),
         new GwpNameValue("4000-40-FA", 227.39),
         new GwpNameValue("4000-30-SL", 250.52),
         new GwpNameValue("4000-40-SL", 225.27),
         new GwpNameValue("4000-50-SL", 200.02),
         new GwpNameValue("4000-50-FA/SL", 199.70),
         new GwpNameValue("5000-00-FA/SL", 399.62),
         new GwpNameValue("5000-20-FA", 341.20),
         new GwpNameValue("5000-30-FA", 309.62),
         new GwpNameValue("5000-40-FA", 276.29),
         new GwpNameValue("5000-30-SL", 305.14),
         new GwpNameValue("5000-40-SL", 273.65),
         new GwpNameValue("5000-50-SL", 242.15),
         new GwpNameValue("5000-50-FA/SL", 241.74),
         new GwpNameValue("6000-00-FA/SL", 420.89),
         new GwpNameValue("6000-20-FA", 359.17),
         new GwpNameValue("6000-30-FA", 325.81),
         new GwpNameValue("6000-40-FA", 290.60),
         new GwpNameValue("6000-30-SL", 321.08),
         new GwpNameValue("6000-40-SL", 287.81),
         new GwpNameValue("6000-50-SL", 254.54),
         new GwpNameValue("6000-50-FA/SL", 254.11),
         new GwpNameValue("8000-00-FA/SL", 490.02),
         new GwpNameValue("8000-20-FA", 417.34),
         new GwpNameValue("8000-30-FA", 378.06),
         new GwpNameValue("8000-40-FA", 336.59),
         new GwpNameValue("8000-30-SL", 372.49),
         new GwpNameValue("8000-40-SL", 333.31),
         new GwpNameValue("8000-50-SL", 294.14),
         new GwpNameValue("8000-50-FA/SL", 293.63)
     };
     GwpSelectedIndex = 0;
     GwpSelected      = ConcreteGwpList[0];
     gwp      = ConcreteGwpList[0].Value;
     RebarGwp = 714.2;
 }
Beispiel #3
0
 /// <summary>
 /// Initialize steel GwpNameValue list
 /// </summary>
 public void PopulateSteelGwpList()
 {
     SteelGwpList = new List <GwpNameValue>()
     {
         new GwpNameValue("Primary Steel", 1350.8, MultiplierType.Weight),
         new GwpNameValue("HSS Steel", 2168.2, MultiplierType.Weight)
     };
     GwpSelectedIndex = 0;
     GwpSelected      = SteelGwpList[0];
     gwp = SteelGwpList[0].Value;
 }
Beispiel #4
0
        /// <summary>
        /// Refresh after change in unknown combo box
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UnknownGwpTypeComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ComboBox     gwpComboBox  = sender as ComboBox;
            string       selectedGwp  = gwpComboBox.SelectedItem as string;
            GwpData      gwpData      = gwpComboBox.DataContext as GwpData;
            GwpNameValue gwpNameValue = gwpData.AllGwpList.First(x => x.Name == selectedGwp);

            gwpData.GwpSelected = gwpNameValue;
            gwpData.Gwp         = gwpNameValue.Value;
            RefreshPlot();
        }
Beispiel #5
0
 /// <summary>
 /// Initialize Timber GwpNameValue list
 /// </summary>
 public void PopulateTimberGwpList()
 {
     TimberGwpList = new List <GwpNameValue>()
     {
         new GwpNameValue("Softwood Lumber", 95.0),
         new GwpNameValue("Softwood Plywood", 169.7),
         new GwpNameValue("Oriented Strand Board", 324.8),
         new GwpNameValue("Glulam", 258.9),
         new GwpNameValue("Laminated Veneer Lumber", 263.9)
     };
     GwpSelectedIndex = 0;
     GwpSelected      = TimberGwpList[0];
     gwp = TimberGwpList[0].Value;
 }
Beispiel #6
0
 /// <summary>
 /// Initialize Timber GwpNameValue list
 /// </summary>
 public void PopulateTimberGwpList()
 {
     TimberGwpList = new List <GwpNameValue>()
     {
         new GwpNameValue("Softwood Lumber", 55.54),
         new GwpNameValue("Softwood Plywood", 99.22),
         new GwpNameValue("Oriented Strand Board", 189.85),
         new GwpNameValue("Glulam", 151.36),
         new GwpNameValue("Laminated Veneer Lumber", 154.29)
     };
     GwpSelectedIndex = 0;
     GwpSelected      = TimberGwpList[0];
     gwp = TimberGwpList[0].Value;
 }
Beispiel #7
0
 /// <summary>
 /// Initialize All GwpNameValue list
 /// </summary>
 public void PopulateAllGwpList()
 {
     PopulateConcreteGwpList();
     PopulateSteelGwpList();
     PopulateTimberGwpList();
     AllGwpList = new List <GwpNameValue>()
     {
         new GwpNameValue("Unknown", 1.0)
     };
     AllGwpList.AddRange(SteelGwpList);
     AllGwpList.AddRange(TimberGwpList);
     AllGwpList.AddRange(ConcreteGwpList);
     GwpSelectedIndex = 0;
     GwpSelected      = AllGwpList[0];
     gwp = AllGwpList[0].Value;
 }