コード例 #1
0
        private void buttonAltaIn_Click(object sender, EventArgs e)
        {
            try
            {
                int      Id                 = int.Parse(textBoxIdIn.Text);
                string   Direccion          = textBoxDirIn.Text;
                decimal  ValorDeVenta       = decimal.Parse(textBoxValorIn.Text);
                DateTime FechaDePublicacion = DateTime.Parse(textBoxPubIn.Text);
                DateTime FechaDeVenta       = DateTime.Parse(textBoxFVentaIn.Text);

                gestor.AltaInmueble(new Inmueble(Id, Direccion, ValorDeVenta, FechaDePublicacion, FechaDeVenta), EmpleadoSeleccionado().Id);
                Mostrar();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }