Example #1
0
        void createAccountView_CreateAccountEvent(string userName,string password)
        {
            EmptyCurrentStateOutputBuffer();

            this.createAccountView.CloseView();

            this.createAccountView = null;
        }
Example #2
0
 public void InitialiseCreateAccount(ICreateAccountView newCreateAccountView)
 {
     this.createAccountView = newCreateAccountView;
     currentState.CreateAccountView = newCreateAccountView;
     AState lastState = currentState;
     currentState = currentState.MoveState();
     if (currentState != lastState)
     {
         currentState.OpenConversationEvent+=new OpenConversationDelegate(currentState_OpenConversationEvent);
     }
     lastState = null;
     this.createAccountView.Initialise();
     this.createAccountView.CloseAccountViewEvent += new CloseAccountViewEventHandler(createAccountView_CloseAccountViewEvent);
     this.createAccountView.CreateAccountEvent += new CreateAccountEventHandler(createAccountView_CreateAccountEvent);
     this.createAccountView.ShowView();
 }