Esempio n. 1
0
        public static void SetButtonColor(Catchment catchment, BMP bmp, System.Windows.Forms.Button btn)
        {
            System.Drawing.Color dColor = System.Drawing.Color.LightGreen;
            System.Drawing.Color bColor = System.Drawing.Color.LightGray;
            System.Drawing.Color sColor = System.Drawing.Color.LightCyan;

            setButtonColor(bmp.isDefined(), btn);
            if ((catchment.getSelectedBMP() == bmp) && bmp.isDefined())
            {
                btn.BackColor = sColor;
            }
        }
Esempio n. 2
0
 private void CalculateTraditional(BMP bmp)
 {
     if (bmp.isDefined())
     {
         bmp.BMPNMassLoadIn = bmp1.BMPNMassLoadOut;
         bmp.BMPPMassLoadIn = bmp1.BMPPMassLoadOut;
         CalculateReductions(bmp);
         ProvidedNTreatmentEfficiency = 100 * (bmp1.BMPNMassLoadIn - bmp.BMPNMassLoadOut) / bmp1.BMPNMassLoadIn;
         ProvidedPTreatmentEfficiency = 100 * (bmp1.BMPPMassLoadIn - bmp.BMPPMassLoadOut) / bmp1.BMPPMassLoadIn;
         CalculateMassLoading();
     }
 }
Esempio n. 3
0
 private void CalculateTraditional()
 {
     if (bmp1.isDefined())
     {
         CalculateReductions(bmp1);
         ProvidedNTreatmentEfficiency = bmp1.ProvidedNTreatmentEfficiency;
         ProvidedPTreatmentEfficiency = bmp1.ProvidedPTreatmentEfficiency;
         CalculateMassLoading(false);
         if (bmp2.isDefined())
         {
             bmp2.BMPNMassLoadIn = bmp1.BMPNMassLoadOut;
             bmp2.BMPPMassLoadIn = bmp1.BMPPMassLoadOut;
             CalculateReductions(bmp2);
             ProvidedNTreatmentEfficiency = 100 * (bmp1.BMPNMassLoadIn - bmp2.BMPNMassLoadOut) / bmp1.BMPNMassLoadIn;
             ProvidedPTreatmentEfficiency = 100 * (bmp1.BMPPMassLoadIn - bmp2.BMPPMassLoadOut) / bmp1.BMPPMassLoadIn;
             CalculateMassLoading(false);
             if (bmp3.isDefined())
             {
                 bmp3.BMPNMassLoadIn = bmp2.BMPNMassLoadOut;
                 bmp3.BMPPMassLoadIn = bmp2.BMPPMassLoadOut;
                 CalculateReductions(bmp3);
                 ProvidedNTreatmentEfficiency = 100 * (bmp1.BMPNMassLoadIn - bmp3.BMPNMassLoadOut) / bmp1.BMPNMassLoadIn;
                 ProvidedPTreatmentEfficiency = 100 * (bmp1.BMPPMassLoadIn - bmp3.BMPPMassLoadOut) / bmp1.BMPPMassLoadIn;
                 CalculateMassLoading(false);
                 if (bmp4.isDefined())
                 {
                     bmp4.BMPNMassLoadIn = bmp3.BMPNMassLoadOut;
                     bmp4.BMPPMassLoadIn = bmp3.BMPPMassLoadOut;
                     CalculateReductions(bmp4);
                     ProvidedNTreatmentEfficiency = 100 * (bmp1.BMPNMassLoadIn - bmp4.BMPNMassLoadOut) / bmp1.BMPNMassLoadIn;
                     ProvidedPTreatmentEfficiency = 100 * (bmp1.BMPPMassLoadIn - bmp4.BMPPMassLoadOut) / bmp1.BMPPMassLoadIn;
                     CalculateMassLoading(false);
                 }
             }
         }
     }
 }