コード例 #1
0
        private void botonModificar_Click(object sender, RoutedEventArgs e)
        {
            Carrera carrera;

            if (comboBoxCarrera.SelectedIndex != -1)
            {
                carrera = (Carrera)comboBoxCarrera.SelectedItem;
                AltaCarrera altaCarrera = new AltaCarrera(logicaprincipal, (Carrera)carrera.Clone(), comboBoxCarrera.SelectedIndex);
                altaCarrera.ShowDialog();

                this.DataContext = logicaprincipal;
            }
        }
コード例 #2
0
        private void df_Click(object sender, RoutedEventArgs e)
        {
            AltaCarrera altaCarrera = new AltaCarrera(logicaprincipal);

            altaCarrera.ShowDialog();
        }