Ejemplo n.º 1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            ControladorTratamiento ca = new ControladorTratamiento();
            Tratamiento            a  = new Tratamiento();

            a.IdTratamiento = Int32.Parse(txtId.Text);
            ca.DeleteSQL(a);
            Show();
        }
Ejemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ControladorTratamiento ca = new ControladorTratamiento();
            Tratamiento            a  = new Tratamiento();

            a.Nombre = txtNombre.Text;
            a.Tipo   = cmbTipo.Text;
            a.Precio = Double.Parse(txtPrecio.Text);
            ca.InsertSQL(a);
            Show();
        }
Ejemplo n.º 3
0
        public void Show()
        {
            ControladorTratamiento ac = new ControladorTratamiento();

            dtgLista.ItemsSource = ac.ShowAllTratamientos();
        }