Esempio n. 1
0
        private void Editar()
        {
            Nota      = txtNota.Text;
            posicionX = Left;
            posicionY = Top;
            Ancho     = Width;
            Alto      = Height;
            string editar = "";

            try
            {
                editar = NegocioNota.Editar(IdNota, Nota, posicionX, posicionY, Ancho, Alto);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + ex.StackTrace);
            }
        }
Esempio n. 2
0
        private void Insertar()
        {
            string agregar = "";

            try
            {
                agregar = NegocioNota.Insertar(Nota, posicionX, posicionY, Ancho, Alto);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + ex.StackTrace);
            }
            DataTable registroNota = NegocioNota.Mostrar();

            foreach (DataRow row in registroNota.Rows)
            {
                int idnota = Convert.ToInt32(row[0]);
                IdNota = idnota;
            }
        }
Esempio n. 3
0
        private void Eliminar()
        {
            string Respuesta;

            Respuesta = NegocioNota.Eliminar(IdNota);
        }