Example #1
0
 public static vncClientObject New()
 {
     vncClientObject ret = new vncClientObject(OpenVNCWRAPPINVOKE.vncClient_New__SWIG_3(), true);
     return ret;
 }
Example #2
0
 public static vncClientObject New(string pLocalHost, ushort nLocalPort, vncNetworkType_t eType)
 {
     vncClientObject ret = new vncClientObject(OpenVNCWRAPPINVOKE.vncClient_New__SWIG_0(pLocalHost, nLocalPort, (int)eType), true);
     return ret;
 }
Example #3
0
 public static vncClientObject New(string pLocalHost)
 {
     vncClientObject ret = new vncClientObject(OpenVNCWRAPPINVOKE.vncClient_New__SWIG_2(pLocalHost), true);
     return ret;
 }
 public vncClientObject(vncClientObject obj)
     : this(OpenVNCWRAPPINVOKE.new_vncClientObject__SWIG_2(vncClientObject.getCPtr(obj)), true)
 {
     if (OpenVNCWRAPPINVOKE.SWIGPendingException.Pending) throw OpenVNCWRAPPINVOKE.SWIGPendingException.Retrieve();
 }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            m_VideoDisplay.vncOnMouseEvent += this.VideoDisplay_vncOnMouseEvent;
            m_VideoDisplay.vncOnKeyEvent += this.VideoDisplay_vncOnKeyEvent;

            videoPlaceholder.MinWidth = 1000;

            if (m_Engine == null)
            {
                vncError_t error;

                m_Engine = vncEngine.New();
                if (m_Engine != null)
                {
                    m_Client = m_Engine.NewClient();
                }

                if (m_Client != null)
                {
                    IntPtr handle = new WindowInteropHelper(this).Handle;
                    error = m_Client.SetCallback(m_Callback);
                    //error = m_Client.SetPixelSize(vncRfbPixelSize_t.vncRfbPixelType_32);
                    error = m_Client.SetParentWindow(m_VideoDisplay.Handle.ToInt64());
                    error = m_Client.SetPassword("admin");
                    error = m_Client.Configure("192.168.0.11", 5900, vncNetworkType_t.vncNetworkType_TCP);
                    error = m_Client.Start();
                    error = m_Client.Connect();
                }
            }
        }
 public bool opNotEquals(vncClientObject other)
 {
     bool ret = OpenVNCWRAPPINVOKE.vncClientObject_opNotEquals(swigCPtr, vncClientObject.getCPtr(other));
     if (OpenVNCWRAPPINVOKE.SWIGPendingException.Pending) throw OpenVNCWRAPPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 internal static HandleRef getCPtr(vncClientObject obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 public vncClientObject opEquals(vncClient other)
 {
     vncClientObject ret = new vncClientObject(OpenVNCWRAPPINVOKE.vncClientObject_opEquals__SWIG_0(swigCPtr, vncClient.getCPtr(other)), false);
     return ret;
 }
 public vncClientObject opEquals(vncClientObject other)
 {
     vncClientObject ret = new vncClientObject(OpenVNCWRAPPINVOKE.vncClientObject_opEquals__SWIG_1(swigCPtr, vncClientObject.getCPtr(other)), false);
     if (OpenVNCWRAPPINVOKE.SWIGPendingException.Pending) throw OpenVNCWRAPPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 public vncClientObject New(string pLocalHost, ushort nLocalPort)
 {
     vncClientObject ret = new vncClientObject(OpenVNCWRAPPINVOKE.vncClientObject_New__SWIG_1(swigCPtr, pLocalHost, nLocalPort), true);
     return ret;
 }
Example #11
0
 public virtual vncClientObject NewClient()
 {
     vncClientObject ret = new vncClientObject(OpenVNCWRAPPINVOKE.vncEngine_NewClient__SWIG_3(swigCPtr), true);
     return ret;
 }
Example #12
0
 public virtual vncClientObject NewClient(string pLocalHost)
 {
     vncClientObject ret = new vncClientObject(OpenVNCWRAPPINVOKE.vncEngine_NewClient__SWIG_2(swigCPtr, pLocalHost), true);
     return ret;
 }
Example #13
0
 public virtual vncClientObject NewClient(string pLocalHost, ushort nLocalPort, vncNetworkType_t eType)
 {
     vncClientObject ret = new vncClientObject(OpenVNCWRAPPINVOKE.vncEngine_NewClient__SWIG_0(swigCPtr, pLocalHost, nLocalPort, (int)eType), true);
     return ret;
 }
Example #14
0
        public vncClientObject NewClient(string pLocalHost, ushort nLocalPort, vncNetworkType_t eType)
        {
            vncClientObject ret = new vncClientObject(OpenVNCWRAPPINVOKE.vncEngineObject_NewClient__SWIG_0(swigCPtr, pLocalHost, nLocalPort, (int)eType), true);

            return(ret);
        }