Example #1
0
        public static string EndShowKeyboardInput(IAsyncResult result)
        {
            try {
                ShowKeyboardInputDelegate ski = (ShowKeyboardInputDelegate)result.AsyncState;

                return(ski.EndInvoke(result));
            } finally {
                isVisible = false;
            }
        }
Example #2
0
        public static string EndShowKeyboardInput(IAsyncResult result)
        {
#if !WINDOWS_UAP
            ShowKeyboardInputDelegate ski = (ShowKeyboardInputDelegate)result.AsyncState;

            return(ski.EndInvoke(result));
#else
            throw new NotImplementedException();
#endif
        }
Example #3
0
        public static string EndShowKeyboardInput(IAsyncResult result)
        {
#if WINDOWS_PHONE
            // Call the Microsoft implementation of BeginShowKeyboardInput using an alias.
            return(MsXna_Guide.EndShowKeyboardInput(result));
#else
            ShowKeyboardInputDelegate ski = (ShowKeyboardInputDelegate)result.AsyncState;

            return(ski.EndInvoke(result));
#endif
        }
Example #4
0
        public static IAsyncResult BeginShowKeyboardInput(
            PlayerIndex player,
            string title,
            string description,
            string defaultText,
            AsyncCallback callback,
            Object state,
            bool usePasswordMode)
        {
            ShowKeyboardInputDelegate ski = ShowKeyboardInput;

            return(ski.BeginInvoke(player, title, description, defaultText, usePasswordMode, callback, ski));
        }
Example #5
0
        public static IAsyncResult BeginShowKeyboardInput(
            PlayerIndex player, string title, string description, string defaultText,
            AsyncCallback callback, Object state, bool usePasswordMode)
        {
            AssertInitialised();

            if (IsVisible)
            {
                throw new GuideAlreadyVisibleException("The function cannot be completed at this time: the Guide UI is already active. Wait until Guide.IsVisible is false before issuing this call.");
            }

            ShowKeyboardInputDelegate ski = ShowKeyboardInput;

            return(ski.BeginInvoke(title, description, defaultText, state, usePasswordMode, callback, ski));
        }
Example #6
0
        public static IAsyncResult BeginShowKeyboardInput(
            MGXna_Framework.PlayerIndex player,
            string title,
            string description,
            string defaultText,
            AsyncCallback callback,
            Object state,
            bool usePasswordMode)
        {
#if !WINDOWS_UAP
            ShowKeyboardInputDelegate ski = ShowKeyboardInput;

            return(ski.BeginInvoke(player, title, description, defaultText, usePasswordMode, callback, ski));
#else
            throw new NotImplementedException();
#endif
        }
Example #7
0
        public static IAsyncResult BeginShowKeyboardInput(
            PlayerIndex player,
            string title,
            string description,
            string defaultText,
            AsyncCallback callback,
            Object state,
            bool usePasswordMode)
        {
#if WINDOWS_PHONE
            // Call the Microsoft implementation of BeginShowKeyboardInput using an alias.
            return(MsXna_Guide.BeginShowKeyboardInput((MsXna_PlayerIndex)player, title, description, defaultText, callback, state, usePasswordMode));
#else
            ShowKeyboardInputDelegate ski = ShowKeyboardInput;

            return(ski.BeginInvoke(player, title, description, defaultText, usePasswordMode, callback, ski));
#endif
        }
Example #8
0
        public static string EndShowKeyboardInput(IAsyncResult result)
        {
            ShowKeyboardInputDelegate ski = (ShowKeyboardInputDelegate)result.AsyncState;

            return(ski.EndInvoke(result));
        }