public void CancelWindow(object data) { try { this.NewUser = null; CloseWindow = false; } catch (Exception ex) { LogSystem.Error(ex); } }
public UserCreateViewModel() { this.NewUser = new AAS.EFMODEL.DataModels.User(); this.CreateNewCommand = new RelayCommand(this.CreateNewUser, null); this.CloseWindowCommand = new RelayCommand(this.CancelWindow, null); }