private void Button_Click(object sender, RoutedEventArgs e) { SupplierBL.InsertBL(firstName_txb.Text, lastName_txb.Text, country_txb.Text, phone_txb.Text, Email_txb.Text, Notes_txb.Text, address_txb.Text); this.Close(); }