private void BCProfileAdd_Click(object sender, RoutedEventArgs e) { if (DatGridNameList.SelectedIndex == -1) { _sqlHandler.AddPerson( nameFirst: this.TBName.Text, nameLast: this.TBName.Text, postalCode: this.TBPostalCode.Text, cityName: this.TBName.Text, streetName: this.TBName.Text, houseNumber: this.TBName.Text ); } else { _sqlHandler.AddPerson( nameFirst: "", nameLast: "", postalCode: "", cityName: "", streetName: "", houseNumber: "" ); } }