private void Show(AccountAuthenticationState state) { this.AddChildViewController <AccountInfoViewController>(t => state == AccountAuthenticationState.Authenticated); this.AddChildViewController <AccountCompleteViewController>(t => state == AccountAuthenticationState.Success); this.AddChildViewController <AccountIndexViewController>(t => state == AccountAuthenticationState.Unauthenticated); this.AddChildViewController <AccountRenewViewController>(t => state == AccountAuthenticationState.Expired); }
private void Show(AccountAuthenticationState state) { switch (state) { case AccountAuthenticationState.Unauthenticated: this.SetContentView(Resource.Layout.AccountViewIndex); break; case AccountAuthenticationState.Success: this.SetContentView(Resource.Layout.AccountViewComplete); break; case AccountAuthenticationState.Authenticated: this.SetContentView(Resource.Layout.AccountViewInfo); break; case AccountAuthenticationState.Expired: this.SetContentView(Resource.Layout.AccountViewRenew); break; default: throw new ArgumentOutOfRangeException(nameof(state), state, null); } }