Esempio n. 1
0
        private void Bw_Update1(object sender, ProgressChangedEventArgs s)
        {
            int a = s.ProgressPercentage;
            Bwu z = s.UserState as Bwu;

            Bw_Update(z.Flag, z.s, z.i1, z.i2);
        }
        private void radButton1_Click(object sender, EventArgs e)
        {
            double Hus, Bwu, Hds, Bds, QU, Lu;

            //up stream retaing wall
            Hus = h + He + (double)0.5;
            Bwu = (double)2 / 3 * Hus;

            //down stream retaing wall
            Hds = d2 + 0.5;
            Bds = (double)2 / 3 * Hds;

            QU = X * Qp;
            Lu = QU / ((double)1.71 * (Math.Pow(Hd + h, (double)3 / 2)));

            undersluiceradTextBox1.Text = Lu.ToString();
            HeightradTextBox1.Text      = Hus.ToString();
            BottomwidthradTextBox3.Text = Bwu.ToString();
            downheightradTextBox4.Text  = Hds.ToString();
            downbottomradTextBox2.Text  = Bds.ToString();
        }