Beispiel #1
0
 public PasswordChangeReciever(string newp, string curp, string confirmp, My_Account acc)
 {
     NewPassword         = newp;
     CurrentPassword     = curp;
     ConfimationPassword = confirmp;
     Account             = acc;
 }
Beispiel #2
0
        public static void Login_change(string new_login, string initial_login, My_Account account)
        {
            LoginChangeReciever       info = new LoginChangeReciever(new_login, initial_login, account);
            LoginStringsFilledHandler stringsFilledHandler = new LoginStringsFilledHandler();
            NoChangesHandler          noChangesHandler     = new NoChangesHandler();
            LoginExistsHandler        loginExistsHandler   = new LoginExistsHandler();
            ChangeLoginHandler        changeLoginHandler   = new ChangeLoginHandler();

            stringsFilledHandler.Successor = noChangesHandler;
            noChangesHandler.Successor     = loginExistsHandler;
            loginExistsHandler.Successor   = changeLoginHandler;
            stringsFilledHandler.Handle(info);
        }
 public LoginChangeReciever(string newl, string initl, My_Account acc)
 {
     NewLogin     = newl;
     InitialLogin = initl;
     Account      = acc;
 }
Beispiel #4
0
        public static void Password_change(string new_password, string current_password, string confirmationpassword, My_Account account)
        {
            PasswordChangeReciever       info = new PasswordChangeReciever(new_password, current_password, confirmationpassword, account);
            PasswordStringsFilledHandler stringsFilledHandler = new PasswordStringsFilledHandler();
            PasswordValidationHandler    validationHandler    = new PasswordValidationHandler();
            PasswordConfirmationHandler  confirmationHandler  = new PasswordConfirmationHandler();
            ChangePasswordHandler        passwordHandler      = new ChangePasswordHandler();

            stringsFilledHandler.Successor = validationHandler;
            validationHandler.Successor    = confirmationHandler;
            confirmationHandler.Successor  = passwordHandler;
            stringsFilledHandler.Handle(info);
        }
Beispiel #5
0
        private void My_AccountBtn_Click(object sender, RoutedEventArgs e)
        {
            My_Account my_Account = new My_Account(this);

            my_Account.Show();
        }
 public ChangePersonalInfoControl(My_Account acc)
 {
     InitializeComponent();
     account = acc;
     RenewLoginData();
 }