Ejemplo n.º 1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     TextBox11Result.Text = Ex2hCalculation.StringCalc01(TextBox11.Text);
     TextBox12Result.Text = Ex2hCalculation.StringCalc02(TextBox12.Text);
     TextBox13Result.Text = Ex2hCalculation.StringCalc03(TextBox13.Text);
     TextBox14Result.Text = Ex2hCalculation.StringCalc04(TextBox14.Text);
     TextBox15Result.Text = Ex2hCalculation.StringCalc05(TextBox15.Text);
     TextBox16Result.Text = Ex2hCalculation.StringCalc06(TextBox16.Text);
     TextBox17Result.Text = Ex2hCalculation.StringCalc07(TextBox17.Text);
     TextBox18Result.Text = Ex2hCalculation.StringCalc08(TextBox18.Text);
     TextBox19Result.Text = Ex2hCalculation.StringCalc09(TextBox19.Text);
     Label20Result.Text   = Ex2hCalculation.StringCalc10(TextBox17.Text, TextBox18.Text, TextBox19.Text);
 }
Ejemplo n.º 2
0
 protected void DateCalculationButton_Click(object sender, EventArgs e)
 {
     TextBox1aResult.Text  = DateTime.Now.ToShortDateString();
     TextBox1bResult.Text  = DateTime.Now.ToShortTimeString();
     TextBox2aResult.Text  = DateTime.Today.ToShortDateString();
     TextBox2bResult.Text  = DateTime.Today.ToShortTimeString();
     TextBox3aResult.Text  = DateTime.Today.Year.ToString();
     TextBox3bResult.Text  = DateTime.Today.Month.ToString();
     TextBox3cResult.Text  = DateTime.Today.Day.ToString();
     TextBox4Result.Text   = DateTime.Today.AddDays(90).ToShortDateString();
     TextBox5Result.Text   = DateTime.Today.AddMonths(3).ToShortDateString();
     TextBox6dResult.Text  = Ex2hCalculation.DateCalc06(TextBox6a.Text, TextBox6b.Text, TextBox6c.Text);
     TextBox7bResult.Text  = Ex2hCalculation.DateCalc07(TextBox7a.Text);
     TextBox9cResult.Text  = Ex2hCalculation.DateCalc09(TextBox9a.Text, TextBox9b.Text);
     TextBox10cResult.Text = Ex2hCalculation.DateCalc10(TextBox10a.Text, TextBox10b.Text);
 }