private void ViewModel_PropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName.Equals(ObjectHelper.GetPropertyName <InstallableFileEditorVM>(x => x.InstallableFileVM))) { InstallableFileVM = ViewModel.InstallableFileVM; } }
public void SaveInstallableFile() { if (Validate()) { InstallableFileSaved(this, new EventArgs <InstallableFile>(InstallableFileVM.Commit())); InstallableFileVM = new InstallableFileVM(null); } }