예제 #1
0
        public FormNuevoAlumno(string title)
        {
            InitializeComponent();
            shared = this;

            // Change text of toolStripLabel1 (title)
            toolStripLabel1.Text = title;
        }
예제 #2
0
 // Click boton ´Modificar alumno´
 private void buttonModificarAlumno_Click(object sender, EventArgs e)
 {
     if (listViewAlumnos.SelectedItems.Count == 0)
     {
         MessageBox.Show("Selecciona un contacto");
     }
     else
     {
         FormNuevoAlumno formNuevoAlumno = new FormNuevoAlumno("Modificar Alumno");
         formNuevoAlumno.Show();
         FormNuevoAlumno.shared.cargarDatosAlumno(listViewAlumnos.SelectedItems[0]);
     }
 }
예제 #3
0
        // Click boton ´Nuevo alumno´
        private void buttonNuevoAlumno_Click(object sender, EventArgs e)
        {
            FormNuevoAlumno formNuevoAlumno = new FormNuevoAlumno("Nuevo Alumno");

            formNuevoAlumno.Show();
        }
예제 #4
0
 public FormNuevoAlumno()
 {
     InitializeComponent();
     shared = this;
 }