public BasePropertyChanger GetPropertyChanger() { ChangeMaterial result = new ChangeMaterial(); if (cmbMaterial.SelectedItem != null) { result.SetValue(cmbMaterial.SelectedItem as string); } return(result); }