Ejemplo n.º 1
0
 private void btnCompute_Click(object sender, EventArgs e)
 {
     typeOfHouse = comboBox1.Text;
     address     = txtAddress.Text;
     number      = Convert.ToInt16(txtNumber.Text);
     yearBuilt   = Convert.ToInt32(txtYearBuilt.Text);
     if (rBMultyUnit.Checked == true)
     {
         MultiUnit a = new MultiUnit(number, typeOfHouse, address, yearBuilt);
         MessageBox.Show(a.Print());
     }
     new Viue().Show();
 }
Ejemplo n.º 2
0
 public Viue()
 {
     InitializeComponent();
     richTextBox1.Text = multiUnit.Print();
 }