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(); }
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(); }