コード例 #1
0
        public ProfesorDesktop(int ID, ModoForm modo) : this()
        {
            Modo = modo;
            ProfesorLogic ul = new ProfesorLogic();

            this.ProfesorActual = ul.GetOne(ID);
            this.MapearDeDatos();
        }
コード例 #2
0
 public override void GuardarCambios()
 {
     if (this.Validar())
     {
         this.MapearADatos();
         ProfesorLogic pl = new ProfesorLogic();
         pl.Save(this.ProfesorActual);
         this.Close();
     }
 }
コード例 #3
0
        public void Listar()
        {
            ProfesorLogic pl = new ProfesorLogic();

            dgvProfesores.DataSource = pl.GetAll();
        }
コード例 #4
0
        public void Listar()
        {
            ProfesorLogic pr = new ProfesorLogic();

            this.dgvProfesores.DataSource = pr.GetAll();
        }