コード例 #1
0
        protected bool InvokeValidateAccountOrOpenInputAccountBox()
        {
            if (UVncOption.ValidateInputAccount())
            {
                return(true);
            }

            if (ValidateAccountOrOpenInputAccountBox != null)
            {
                if (ValidateAccountOrOpenInputAccountBox.Invoke(null, null))
                {
                    UVncOption.CreateAndWriteAdminPasswdToUserTempFile();
                    return(true);
                }
                return(false);
            }
            else
            {
                throw new Exception("用戶輸入框事件未訂閱.");
            }
        }
コード例 #2
0
ファイル: UVncBase.cs プロジェクト: fei018/HHVNCRemote
        protected bool InvokeValidateAccountOrOpenInputAccountBox()
        {
            if (UVncOption.ValidateInputAccount())
            {
                return true;
            }

            if (ValidateAccountOrOpenInputAccountBox != null)
            {
                if (ValidateAccountOrOpenInputAccountBox.Invoke(null, null))
                {
                    UVncOption.WriteAdminInfoToTempAdminTxt();
                    return true;
                }
                return false;
            }
            else
            {
                throw new Exception("用戶輸入框事件未訂閱.");
            }
        }