コード例 #1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            // Start with calling the base implementation
            base.OnNavigatedTo(e);

            if (e.NavigationMode != System.Windows.Navigation.NavigationMode.Back)
            {
                LanguageResources.Instance.UpdateControl(this);
                this.pageContext = NavigationContext.GetData <SignInUpDialogsContext>();
            }
        }
コード例 #2
0
ファイル: SignInPage.xaml.cs プロジェクト: ckeboss/WazeWP7
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            // Start with calling the base implementation
            base.OnNavigatedTo(e);

            if (e.NavigationMode != System.Windows.Navigation.NavigationMode.Back)
            {
                LanguageResources.Instance.UpdateControl(this);
                this.pageContext = NavigationContext.GetData<SignInUpDialogsContext>();
            }
        }
コード例 #3
0
ファイル: Syscalls.cs プロジェクト: ckeboss/WazeWP7
    public static void NOPH_SignInUpDialogs_showWelcomeDialog(int in_signin_callback, int in_signup_callback, int in_signup_skip_callback)
    {
        GamePage mainScreen = (GamePage)GamePage.get();

        System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() =>
        {
            SignInUpDialogsContext pageContext = new SignInUpDialogsContext
            {
                Username = null,
                Password = null
            };
            pageContext.OnSignin += (username, password) =>
                {
                    CallSigninCallback(in_signin_callback, username, password);
                };
            pageContext.OnSignup += (username, password, confirmPassword, email, nickame, sendUpdates) =>
                {
                    CallSignupCallback(in_signup_callback, username, password, confirmPassword, email, nickame, sendUpdates);
                };
            pageContext.OnSkipSignup += () =>
                {
                    UIWorker.addUIEvent(in_signup_skip_callback, 0, 0, 0, 0, true);
                };
            mainScreen.NavigationService.Navigate<WelcomePage>( pageContext);
        });
    }
コード例 #4
0
ファイル: Syscalls.cs プロジェクト: ckeboss/WazeWP7
    public static void NOPH_SignInUpDialogs_showSignInDialog(int in_signin_callback, int i_username, int i_password)
    {
        GamePage mainScreen = (GamePage)GamePage.get();

        System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() =>
        {
            String username = CRunTime.charPtrToString(i_username);
            String password = CRunTime.charPtrToString(i_password);
            SignInUpDialogsContext pageContext = new SignInUpDialogsContext
            {
                Username = username,
                Password = password
            };
            pageContext.OnSignin += (dialog_username, dialog_password) =>
            {
                CallSigninCallback(in_signin_callback, dialog_username, dialog_password);
            };
            mainScreen.NavigationService.Navigate<SignInPage>(pageContext);
        });
    }