Example #1
0
 public vncEngineObject(vncEngineObject obj) : this(OpenVNCWRAPPINVOKE.new_vncEngineObject__SWIG_2(vncEngineObject.getCPtr(obj)), true)
 {
     if (OpenVNCWRAPPINVOKE.SWIGPendingException.Pending)
     {
         throw OpenVNCWRAPPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
        public bool opNotEquals(vncEngineObject other)
        {
            bool ret = OpenVNCWRAPPINVOKE.vncEngineObject_opNotEquals(swigCPtr, vncEngineObject.getCPtr(other));

            if (OpenVNCWRAPPINVOKE.SWIGPendingException.Pending)
            {
                throw OpenVNCWRAPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #3
0
        public vncEngineObject opEquals(vncEngineObject other)
        {
            vncEngineObject ret = new vncEngineObject(OpenVNCWRAPPINVOKE.vncEngineObject_opEquals__SWIG_1(swigCPtr, vncEngineObject.getCPtr(other)), false);

            if (OpenVNCWRAPPINVOKE.SWIGPendingException.Pending)
            {
                throw OpenVNCWRAPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        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();
                }
            }
        }
Example #5
0
 public static vncEngineObject New()
 {
     vncEngineObject ret = new vncEngineObject(OpenVNCWRAPPINVOKE.vncEngine_New(), true);
     return ret;
 }
Example #6
0
        public static vncEngineObject New()
        {
            vncEngineObject ret = new vncEngineObject(OpenVNCWRAPPINVOKE.vncEngine_New(), true);

            return(ret);
        }
Example #7
0
        public vncEngineObject opEquals(vncEngine other)
        {
            vncEngineObject ret = new vncEngineObject(OpenVNCWRAPPINVOKE.vncEngineObject_opEquals__SWIG_0(swigCPtr, vncEngine.getCPtr(other)), false);

            return(ret);
        }
Example #8
0
 internal static HandleRef getCPtr(vncEngineObject obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
 public vncEngineObject New()
 {
     vncEngineObject ret = new vncEngineObject(OpenVNCWRAPPINVOKE.vncEngineObject_New(swigCPtr), true);
     return ret;
 }
Example #10
0
        public vncEngineObject New()
        {
            vncEngineObject ret = new vncEngineObject(OpenVNCWRAPPINVOKE.vncEngineObject_New(swigCPtr), true);

            return(ret);
        }
 public vncEngineObject(vncEngineObject obj)
     : this(OpenVNCWRAPPINVOKE.new_vncEngineObject__SWIG_2(vncEngineObject.getCPtr(obj)), true)
 {
     if (OpenVNCWRAPPINVOKE.SWIGPendingException.Pending) throw OpenVNCWRAPPINVOKE.SWIGPendingException.Retrieve();
 }
 internal static HandleRef getCPtr(vncEngineObject obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 public bool opNotEquals(vncEngineObject other)
 {
     bool ret = OpenVNCWRAPPINVOKE.vncEngineObject_opNotEquals(swigCPtr, vncEngineObject.getCPtr(other));
     if (OpenVNCWRAPPINVOKE.SWIGPendingException.Pending) throw OpenVNCWRAPPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 public vncEngineObject opEquals(vncEngineObject other)
 {
     vncEngineObject ret = new vncEngineObject(OpenVNCWRAPPINVOKE.vncEngineObject_opEquals__SWIG_1(swigCPtr, vncEngineObject.getCPtr(other)), false);
     if (OpenVNCWRAPPINVOKE.SWIGPendingException.Pending) throw OpenVNCWRAPPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 public vncEngineObject opEquals(vncEngine other)
 {
     vncEngineObject ret = new vncEngineObject(OpenVNCWRAPPINVOKE.vncEngineObject_opEquals__SWIG_0(swigCPtr, vncEngine.getCPtr(other)), false);
     return ret;
 }