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

                return(ski.EndInvoke(result));
            } finally {
                isVisible = false;
            }
        }
예제 #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
        }
예제 #3
0
파일: Guide.cs 프로젝트: bjarkeeck/GCGJ
        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
        }
예제 #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));
        }
예제 #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));
        }
예제 #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
        }
예제 #7
0
파일: Guide.cs 프로젝트: bjarkeeck/GCGJ
        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
        }
예제 #8
0
        public static string EndShowKeyboardInput(IAsyncResult result)
        {
            ShowKeyboardInputDelegate ski = (ShowKeyboardInputDelegate)result.AsyncState;

            return(ski.EndInvoke(result));
        }