示例#1
0
        private void SetButtonColors()
        {
            Catchment c = currentCatchment();

            lblCurrent.Text = c.id.ToString() + " " + c.CatchmentName;

            Common.SetButtonColor(c, c.getRetention(), btnRetention);
            Common.SetButtonColor(c, c.getWetDetention(), bthDetention);
            Common.SetButtonColor(c, c.getExfiltration(), btExfiltration);
            Common.SetButtonColor(c, c.getPerviousPavement(), btnPeriousPavement);
            Common.SetButtonColor(c, c.getStormwaterHarvesting(), btnStormwaterHarvesting);
            Common.SetButtonColor(c, c.getFiltration(), btnBiofiltration);
            Common.SetButtonColor(c, c.getSwale(), btnSwale);
            Common.SetButtonColor(c, c.getRainwaterHarvesting(), btnRainwater);
            Common.SetButtonColor(c, c.getVegetatedNaturalBuffer(), btnNaturalBuffer);
            Common.SetButtonColor(c, c.getGreenroof(), btnGreenroof);
            Common.SetButtonColor(c, c.getVegetatedFilterStrip(), btnFilterStrip);
            Common.SetButtonColor(c, c.getRainGarden(), btnRainGarden);
            Common.SetButtonColor(c, c.getTreeWell(), btnTreeWell);
            Common.SetButtonColor(c, c.getUserDefinedBMP(), btnUserDefined);
            Common.SetButtonColor(c, c.getMultipleBMP(), btnBMPs);
        }