コード例 #1
0
        private void Button_Listar(object sender, RoutedEventArgs e)
        {
            NegPresidente x = new NegPresidente();

            listapre.ItemsSource = null;
            listapre.ItemsSource = x.SelectPresidente();
        }
コード例 #2
0
        private void SelectClick(object sender, RoutedEventArgs e)
        {
            NegPresidente m = new NegPresidente();

            listapre.ItemsSource = null;
            listapre.ItemsSource = m.SelectPresidente();
        }
コード例 #3
0
        public EquipesAdm()
        {
            InitializeComponent();
            NegPresidente x = new NegPresidente();

            listapres.ItemsSource = null;
            listapres.ItemsSource = x.SelectPresidente();
        }
コード例 #4
0
        private void Button_Deletar(object sender, RoutedEventArgs e)
        {
            ModPresidente c = new ModPresidente();

            c.Id = int.Parse(idpretxt.Text);
            NegPresidente n = new NegPresidente();

            n.DeletePresidente(c);
            listapre.ItemsSource = null;
            listapre.ItemsSource = n.SelectPresidente();

            nomepretxt.Text    = "";
            emailpretxt.Text   = "";
            fonepretxt.Text    = "";
            senha.Password     = "";
            confsenha.Password = "";
            foto            = string.Empty;
            idpretxt.Text   = "";
            nascpretxt.Text = "";
        }