public virtual void Init() { ConnectDialogState = new ConnectDialogState(this); EscDialogState = new EscDialogState(this); LoadingDialogState = new LoadingDialogState(this); ModelSelectDialogState = new ModelSelectDialogState(this); MainMenuState = new MainMenuState(this); EscConfirmDialogState = new EscConfirmDialogState(this); UIAdjustDialogState = new UIAdjustDialogState(this); StartupDialogState = new StartupDialogState(this); LevelDialogState = new LevelDialogState(this); UpdateDialogState = new UpdateDialogState(this); DlcDialogState = new DlcDialogState(this); DlcManagerDialogState = new DlcManagerDialogState(this); WorldTemplateDialogState = new WorldTemplateDialogState(this); MainLobbyDialogState = new MainLobbyDialogState(this); RoomOptionDialogState = new CreateRoomDialogState(this); ServerListDialogState = new ServerListDialogState(this); RecordDialogState = new RecordDialogState(this); HostEditDialogState = new HostEditDialogState(this); SettingDialogState = new SettingDialogState(this); LoginDialogState = new LoginDialogState(this); WeaponSelectDialogState = new WeaponSelectDialogState(this); CampSelectDialogState = new CampSelectDialogState(this); MatchDialogState = new MatchDialogState(this); BattleResultDialogState = new BattleResultDialogState(this); SfxDialogState = new SfxDialogState(this); RobotDialogState = new RobotDialogState(this); RoleSelectDialogState = new RoleSelectDialogState(this); WeaponDialogState = new WeaponDialogState(this); }
private void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) { Debug.WriteLine(Username.Text + ", " + Password.Password + ", " + SaveCredentialsCheckBox.IsChecked); if (String.IsNullOrWhiteSpace(Username.Text) || String.IsNullOrWhiteSpace(Password.Password)) { this.Result = LoginDialogState.Failed; } else { this.Result = LoginDialogState.Login; } this.Hide(); }
private void ContentDialog_SecondaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) { this.Result = LoginDialogState.Cancel; this.Hide(); }
public LoginDialog() { this.InitializeComponent(); this.Result = LoginDialogState.Nothing; }
/// <summary> /// Generates the LoginDialogState /// </summary> private void generateDialogState() { _StateManager = new LoginDialogState(); }