Beispiel #1
0
        private void Button_Inserir(object sender, RoutedEventArgs e)
        {
            Disciplina d = new Disciplina(nome.Text, semestre.Text, int.Parse(media.Text), cbA.IsChecked.Value);

            h.Inserir(d);
            materias.ItemsSource = h.Listar();
        }
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            bool ap = false;

            if (Aprovado.IsChecked == true)
            {
                ap = true;
            }
            Disciplina d = new Disciplina(NomeDisciplina.Text, Semestre.Text, double.Parse(Media.Text), ap);

            a.Inserir(d);
            Listar.ItemsSource = a.Listar();
        }
 private void Button_Click_2(object sender, RoutedEventArgs e)
 {
     if (lista.SelectedIndex != -1)
     {
         h.Excluir(lista.SelectedIndex);
     }
     lista.ItemsSource = h.Listar();
 }
Beispiel #4
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     Historico h = new Historico("Thiago");
     h.Inserir(new Disciplina("POO", 80));
     h.Inserir(new Disciplina("Design", 70));
     h.Inserir(new Disciplina("Física", 95));
     list.ItemsSource = h.Listar(); // h.discs;
     txt.Text = h.IRA().ToString();
 }