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); }
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); }
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); }
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); }
public void InsertMembro_Click(object sender, RoutedEventArgs e) { Membro Page = new Membro(-1); this.NavigationService.Navigate(Page); }