Ejemplo n.º 1
0
        public void DCView2()
        {
            ResultsP2.Add(new CellItem()
            {
                Title     = "Battery String Voltage (volts)",
                Text      = CalculationInput.VoltageOfBattery.ToString(),
                TextColor = Color.Black,
                CellType  = "Normal"
            });
            ResultsP2.Add(new CellItem()
            {
                Title     = "Maximum Available Short Circuit (amps)",
                Text      = CalculationInput.MaximumShortCircuitAvailable.ToString(),
                TextColor = Color.Black,
                CellType  = "Normal"
            });
            var temp = (CalculationInput.InCabinet.Value) ? "In Box" : "Open Air";

            ResultsP2.Add(new CellItem()
            {
                Title     = "Battery Enclosure?",
                Text      = temp,
                TextColor = Color.Black,
                CellType  = "Normal"
            });
            ResultsP2.Add(new CellItem()
            {
                Title          = "Incident Energy at less than 50 volts",
                TitleColor     = Color.FromHex("#339152"),
                Text           = $"{CalculationOutput.IE50v:N2} cal/cm²",
                TextColor      = Color.Black,
                CellType       = "Normal",
                FontAttributes = FontAttributes.Bold,
            });
        }
Ejemplo n.º 2
0
 public void ACView2()
 {
     ResultsP2.Add(new CellItem()
     {
         Title     = AppResources.Nominal_Working_Voltage,
         Text      = CalculationInput.NominalVoltage.ToString(),
         TextColor = Color.Black,
         CellType  = "Normal"
     });
     ResultsP2.Add(new CellItem()
     {
         Title          = AppResources.Arc_Flash_Boundary_Feet,
         TitleColor     = Color.FromHex("#339152"),
         Text           = $"{CalculationOutput.FPB:N2}",
         TextColor      = Color.Black,
         CellType       = "Normal",
         FontAttributes = FontAttributes.Bold,
     });
     ResultsP2.Add(new CellItem()
     {
         Title          = "Bolted Fault Current (amps)",
         TitleColor     = Color.FromHex("#339152"),
         Text           = $"{(CalculationOutput.BoltedFaultCurrent*1000):N2}",
         TextColor      = Color.Black,
         CellType       = "NormalWithButton",
         FontAttributes = FontAttributes.Bold,
         Command        = NewCalculationCommand
     });
     ResultsP2.Add(new CellItem()
     {
         Title          = "Estimated Arc Fault Current (amps)",
         TitleColor     = Color.FromHex("#339152"),
         Text           = $"{(CalculationOutput.EstimatedArcFaultCurrent*1000):N2}",
         TextColor      = Color.Black,
         CellType       = "Normal",
         FontAttributes = FontAttributes.Bold,
     });
     ResultsP2.Add(new CellItem()
     {
         Title          = "Incident Energy 18\" (cal/cm²) ",
         TitleColor     = Color.FromHex("#339152"),
         Text           = $"{CalculationOutput.IE18:N2}",
         TextColor      = Color.Black,
         CellType       = "Normal",
         FontAttributes = FontAttributes.Bold,
     });
     ResultsP2.Add(new CellItem()
     {
         Title          = "Incident Energy 24\" (cal/cm²) ",
         TitleColor     = Color.FromHex("#339152"),
         Text           = $"{CalculationOutput.IE24:N2}",
         TextColor      = Color.Black,
         CellType       = "Normal",
         FontAttributes = FontAttributes.Bold,
     });
     ResultsP2.Add(new CellItem()
     {
         Title          = "Incident Energy 36\" (cal/cm²) ",
         TitleColor     = Color.FromHex("#339152"),
         Text           = $"{CalculationOutput.IE36:N2}",
         TextColor      = Color.Black,
         CellType       = "Normal",
         FontAttributes = FontAttributes.Bold,
     });
     ResultsP2.Add(new CellItem()
     {
         Text     = AppResources.Standard_Working_Distance,
         CellType = "Link",
         Command  = WorkingDistanceTableCommand
     });
 }