public EmailConfirmationWindow(UserInfoModel user)
 {
     InitializeComponent();
     this.user         = user;
     emailConfirmation = new EmailConfirmationMethods();
     confirmationKey   = emailConfirmation.GenerateConfirmationKey();
     emailConfirmation.SendEmail(user, confirmationKey);
 }
 public SettingsWindow(UserInfoModel user)
 {
     InitializeComponent();
     emailConfirmation = new EmailConfirmationMethods();
     userSettings      = new UserSettingsMethods();
     _user             = user;
     InitializeUserSettings();
     confirmPasswordWindow = new ConfirmPasswordWindow(_user, this);
     Email.Content         = _user.Email;
     runtime = new Runtime.Runtime(_user.EyesTimer, _user.EatingTimer, _user.ExerciseTimer, _user.ShutDownTimer);
 }