Mercurial > silverbladetech
diff SilverlightValidation/SilverlightValidation.PL/ViewModels/UserViewModel.cs @ 98:d0c2cac12376
Latest version
author | stevenhollidge <stevenhollidge@hotmail.com> |
---|---|
date | Sat, 05 May 2012 22:53:40 +0100 |
parents | 1adc1ae981ea |
children | db05a55e3536 |
line wrap: on
line diff
--- a/SilverlightValidation/SilverlightValidation.PL/ViewModels/UserViewModel.cs Sat May 05 16:39:00 2012 +0100 +++ b/SilverlightValidation/SilverlightValidation.PL/ViewModels/UserViewModel.cs Sat May 05 22:53:40 2012 +0100 @@ -13,7 +13,7 @@ namespace SilverlightValidation.ViewModels { - public class UserViewModel : ViewModelBase, IUserModel, IEditableObject + public class UserViewModel : ViewModelBase, IUserViewModel, IEditableObject { #region Fields @@ -32,7 +32,7 @@ _validator = validator; _data = model; - _backup = model.Clone(); + _backup = model.Clone() as UserModel; OkCommand = new RelayCommand(OkCommandExecute); CancelCommand = new RelayCommand(CancelCommandExecute);