OpenInput() public method

Opens the current input desktop.
public OpenInput ( ) : bool
return bool
コード例 #1
0
ファイル: Desktop.cs プロジェクト: billyprice1old/server
        /// <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
ファイル: Desktop.cs プロジェクト: Ulterius/server
        /// <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;
        }