Exemple #1
0
        public void Row_DoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow row = ItemsControl.ContainerFromElement((DataGrid)sender,
                                                                e.OriginalSource as DependencyObject) as DataGridRow;

            if (row == null)
            {
                return;
            }
            Membro rowPage = new Membro((int)(((DataRowView)row.Item).Row["ID"]));

            this.NavigationService.Navigate(rowPage);
        }
Exemple #2
0
 private void DeleteAccess_Click(object sender, RoutedEventArgs e)
 {
     Object[] values = { (String)Plataforma_ComboBox.SelectedItem, member_id };
     DB.getDB().executeNonResultQuery("DELETE FROM ACESSO WHERE Plataforma_nome = {} and Membro_id = {}; ", values);
     Membro.refreshAcessoList(this);
 }
Exemple #3
0
 private void SaveAccess_Click(object sender, RoutedEventArgs e)
 {
     Object[] values = { Username_TextBox.Text, Tipo_TextBox.Text, (String)Plataforma_ComboBox.SelectedItem, member_id };
     DB.getDB().executeNonResultQuery("UPDATE ACESSO SET Username = {}, Tipo = {} WHERE Plataforma_nome = {} and Membro_id = {};", values);
     Membro.refreshAcessoList(this);
 }
Exemple #4
0
 private void AddAccess_Click(object sender, RoutedEventArgs e)
 {
     Object[] values = { (String)Plataforma_ComboBox.SelectedItem, member_id, Username_TextBox.Text, Tipo_TextBox.Text };
     DB.getDB().executeNonResultQuery("INSERT INTO ACESSO VALUES ({}, {}, {}, {});", values);
     Membro.refreshAcessoList(this);
 }
Exemple #5
0
        public void InsertMembro_Click(object sender, RoutedEventArgs e)
        {
            Membro Page = new Membro(-1);

            this.NavigationService.Navigate(Page);
        }