public void receiveDirtyVideo(TargettedDirtyElement tde) { }
 public void receiveDirtyStroke(TargettedDirtyElement tde) { }
 public void receiveDirtyTextBox(TargettedDirtyElement tde) { }
 private void SendDirtyText(TargettedDirtyElement tde)
 {
     client.SendDirtyTextBox(tde);
 }
Exemple #5
0
 public void ReceiveDirtyVideo(TargettedDirtyElement element)
 {
     if (!(element.target.Equals(target))) return;
     if (element.slide != currentSlide) return;
     doDirtyVideo(element.identifier);
 }
 public void receiveDirtyAutoShape(TargettedDirtyElement tde) { }
 private void SendDirtyLiveWindow(TargettedDirtyElement tde)
 {
 }
Exemple #8
0
 private void receiveDirtyText(TargettedDirtyElement element)
 {
     if (!(element.target.Equals(target))) return;
     if (element.slide != currentSlide) return;
     Dispatcher.adoptAsync(delegate
     {
         if (myTextBox != null && element.identifier == myTextBox.tag().id) return;
         if (element.author == me) return;
         for (int i = 0; i < Children.Count; i++)
         {
             var currentTextbox = (MeTLTextBox)Children[i];
             if (element.identifier.Equals(currentTextbox.tag().id))
                 Children.Remove(currentTextbox);
         }
     });
 }
 void IReceiveEvents.receiveDirtyImage(TargettedDirtyElement tde)
 {
     DirtyImageAvailable(this, new DirtyElementAvailableEventArgs { dirtyElement = tde });
 }
 public DirtyVideo(TargettedDirtyElement element)
     : base(element)
 {
     this.TagName = TAG;
 }
 public DirtyLiveWindow(TargettedDirtyElement element)
     : base(element)
 {
     this.TagName = TAG;
 }
 public DirtyAutoshape(TargettedDirtyElement element)
     : base(element)
 {
     this.TagName = TAG;
 }
 public DirtyElement(TargettedDirtyElement element)
     : this()
 {
     this.element = element;
 }
Exemple #14
0
        private void dirtyThisElement(UIElement element)
        {
            var thisImage = (System.Windows.Controls.Image)element;
            var dirtyElement = new TargettedDirtyElement(currentSlide, Globals.me, target,thisImage.tag().privacy, thisImage.tag().id );
            switch (element.GetType().ToString())
            {
                case "System.Windows.Controls.Image":
                    var image = (System.Windows.Controls.Image)element;
                    ApplyPrivacyStylingToElement(image, image.tag().privacy);
                    Commands.SendDirtyImage.Execute(dirtyElement);
                    break;
                case "MeTLLib.DataTypes.Video":
                    Commands.MirrorVideo.ExecuteAsync(new VideoMirror.VideoMirrorInformation(dirtyElement.identifier, null));
                    Commands.SendDirtyVideo.ExecuteAsync(dirtyElement);
                    break;
            }

        }
 public void receiveDirtyImage(TargettedDirtyElement tde) { }
 public void receiveDirtyLiveWindow(TargettedDirtyElement tde)
 {
     DirtyLiveWindowAvailable(this, new DirtyElementAvailableEventArgs { dirtyElement = tde });
 }
 public void receiveDirtyLiveWindow(TargettedDirtyElement tde) { }
 public void receiveDirtyAutoShape(TargettedDirtyElement tde)
 {
     DirtyAutoShapeAvailable(this, new DirtyElementAvailableEventArgs { dirtyElement = tde });
 }
 private void SendDirtyAutoshape(TargettedDirtyElement tde)
 {
 }
Exemple #20
0
 public void SendDirtyVideo(TargettedDirtyElement tde)
 {
     Trace.TraceInformation("Beginning DirtyVideo send: " + tde.identifier);
     Action work = delegate
     {
         wire.SendDirtyVideo(tde);
     };
     tryIfConnected(work);
 }
 private void SendDirtyStroke(TargettedDirtyElement tde)
 {
     client.SendDirtyStroke(tde);
 }
 public void TargettedDirtyElementConstructorTest()
 {
     TargettedDirtyElement target = new TargettedDirtyElement();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
 private void SendDirtyVideo(TargettedDirtyElement tde)
 {
     client.SendDirtyVideo(tde);
 }
Exemple #24
0
 private void ReceiveDirtyLiveWindow(TargettedDirtyElement dirtyElement)
 {
     if (target != dirtyElement.target) return;
     for (int i = 0; i < Children.Count; i++)
     {
         var child = Children[i];
         if (child is RenderedLiveWindow && (string)((Rectangle)((RenderedLiveWindow)child).Rectangle).Tag == dirtyElement.identifier)
             Children.Remove(child);
     }
 }