示例#1
0
        public IAsyncResult BeginSendStrokeAdd(Stroke stroke, AsyncCallback callback, object state)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("RTDocumentHelper has been disposed");
            }

            RTStrokeAdd rtStrokeAdd = new RTStrokeAdd(DateTime.UtcNow, rtDocumentIdentifier, CurrentPageIdentifier, true, stroke, null);

            return(capability.BeginSendObject(rtStrokeAdd, callback, state));
        }
示例#2
0
        public void SendStrokeAdd(Stroke stroke)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("RTDocumentHelper has been disposed");
            }

            RTStrokeAdd rtStrokeAdd = new RTStrokeAdd(DateTime.UtcNow, rtDocumentIdentifier, CurrentPageIdentifier, true, stroke, null);

            capability.SendObject(rtStrokeAdd);
        }
        public IAsyncResult BeginSendStrokeAdd ( Stroke stroke, AsyncCallback callback, object state )
        {
            if (disposed) throw new ObjectDisposedException(Strings.RTDocumentHelperHasBeenDisposed);

            RTStrokeAdd rtStrokeAdd = new RTStrokeAdd ( DateTime.UtcNow, rtDocumentIdentifier, CurrentPageIdentifier, true, stroke, null );
            return capability.BeginSendObject ( rtStrokeAdd, callback, state );
        }
        public void SendStrokeAdd ( Stroke stroke )
        {
            if (disposed) throw new ObjectDisposedException(Strings.RTDocumentHelperHasBeenDisposed);

            RTStrokeAdd rtStrokeAdd = new RTStrokeAdd ( DateTime.UtcNow, rtDocumentIdentifier, CurrentPageIdentifier, true, stroke, null );
            capability.SendObject ( rtStrokeAdd );
        }