public void UserToProcess(UserVM p) { if (p == null) { UserToDisplay = null; isSelected = false; return; } else if (p._UserId == 0) { UserToDisplay = null; isSelected = false; this._canProceedSave = true; this._canProceedUpd = false; } UserVM temp = new UserVM(); temp.CopyUser(p); temp.PropertyChanged += new PropertyChangedEventHandler(userVM_PropertyChanged); temp.PropertyChanging += new PropertyChangingEventHandler(userVM_PropertyChanging); _userToDisplay = temp; if (this._mode == Mode.Add) { isSelected = false; } if (this._mode == Mode.Edit) { isSelected = true; } stat.NoError(); } // ProcessUser()