Exemplo n.º 1
0
 private void SaveButton_Click(object sender, RoutedEventArgs e)
 {
     DataRowView RowView = (DataRowView)this.DataContext;
     RowView["name"] = TableNameBox.Text;
     DataBase.TablesModel tables = new DataBase.TablesModel();
     tables.UpdateRow(RowView.Row);
     this.Close();
 }
Exemplo n.º 2
0
 private void DelButton_Click(object sender, RoutedEventArgs e)
 {
     DataRowView RowView = (DataRowView)this.DataContext;
     RowView.Delete();
     DataBase.TablesModel tables = new DataBase.TablesModel();
     tables.UpdateRow(RowView.Row);
     this.Close();
 }