private void button5_Click(object sender, RoutedEventArgs e) { Window taskWindow = new kit_bay(id + 1); taskWindow.Show(); this.Hide(); }
private void button3_Click(object sender, RoutedEventArgs e) { //FATAL ERROR IN QWERY OleDbConnection conn; string connectionString = @"Provider = Microsoft.JET.OLEDB.4.0; Data Source = |DataDirectory|\\MotoDB.mdb"; string query = "UPDATE kit_storage SET kit_storage.kit_count = '" + (Convert.ToInt32(textBox11.Text) + kit_count_in_DB) + "' WHERE(((kit_storage.kit_id)Like '" + kit_id + "'));"; conn = new OleDbConnection(connectionString); conn.Open(); OleDbCommand command = new OleDbCommand(query, conn); command.ExecuteNonQuery(); conn.Close(); Window tw = new kit_bay(id_parsing); tw.Show(); this.Close(); }