private void DbEditClick(object sender, RoutedEventArgs e) { DatabaseEditWindow databaseEditWindow = new DatabaseEditWindow(); if (databaseEditWindow.ShowDialog() == true) { material.CopyMaterial(databaseEditWindow.selectedMaterial); } }