Beispiel #1
0
        public bool StartProjecting()
        {
            _requiredCallbacks            = new RequiredCallbacks(_virtInstance, _sftpClient);
            _virtInstance.OnQueryFileName = _requiredCallbacks.QueryFilenameCallback;
            var hr = _virtInstance.StartVirtualizing(_requiredCallbacks);

            if (hr == HResult.Ok)
            {
                Process.Start(VirtualizationDirectory.FullName);
            }
            return(hr == HResult.Ok);
        }
Beispiel #2
0
        public bool StartProjecting()
        {
            requiredCallbacks = new RequiredCallbacks(this, virtualization, SftpClient);
            virtualization.OnQueryFileName = requiredCallbacks.QueryFilenameCallback;
            var hr = virtualization.StartVirtualizing(requiredCallbacks);

            if (hr == HResult.Ok)
            {
                Process.Start(VirtualizationDirectory.FullName);
            }
            return(hr == HResult.Ok);
        }