OpenInput() публичный Метод

Opens the current input desktop.
public OpenInput ( ) : bool
Результат bool
Пример #1
0
        /// <summary>
        ///     Opens the current input desktop.
        /// </summary>
        /// <returns>If successful, a Desktop object, otherwise, null.</returns>
        public static Desktop OpenInputDesktop()
        {
            // open the desktop.
            var desktop = new Desktop();
            var result  = desktop.OpenInput();

            // somethng went wrong.
            if (!result)
            {
                return(null);
            }

            return(desktop);
        }
Пример #2
0
        /// <summary>
        ///     Opens the current input desktop.
        /// </summary>
        /// <returns>If successful, a Desktop object, otherwise, null.</returns>
        public static Desktop OpenInputDesktop()
        {
            // open the desktop.
            var desktop = new Desktop();
            var result = desktop.OpenInput();

            // somethng went wrong.
            if (!result) return null;

            return desktop;
        }