void createAccountView_CreateAccountEvent(string userName,string password) { EmptyCurrentStateOutputBuffer(); this.createAccountView.CloseView(); this.createAccountView = null; }
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(); }