public override DestinationBase Clone()
        {
            BonjourForwardDestination clone = new BonjourForwardDestination(this.Description, this.Platform, this.Enabled, this.Password);

            clone.IPAddress = this.IPAddress;
            clone.Port      = this.Port;
            clone.Available = this.Available;
            return(clone);
        }
            public object GetRealObject(StreamingContext context)
            {
                if (this.platform == null)
                {
                    this.platform = KnownDestinationPlatformType.Other;
                }
                BonjourForwardDestination bfd = new BonjourForwardDestination(this.serviceName, this.platform, this.enabled, this.password);

                bfd.NotAvailable();
                return(bfd);
            }
 public override DestinationBase Clone()
 {
     BonjourForwardDestination clone = new BonjourForwardDestination(this.Description, this.Platform, this.Enabled, this.Password);
     clone.IPAddress = this.IPAddress;
     clone.Port = this.Port;
     clone.Available = this.Available;
     return clone;
 }
 public object GetRealObject(StreamingContext context)
 {
     if (this.platform == null) this.platform = KnownDestinationPlatformType.Other;
     BonjourForwardDestination bfd = new BonjourForwardDestination(this.serviceName, this.platform, this.enabled, this.password);
     bfd.NotAvailable();
     return bfd;
 }
Exemplo n.º 5
0
        public BonjourServiceUpdatedEventArgs(BonjourForwardDestination bfd)

        {
            this.bfd = bfd;
        }
Exemplo n.º 6
0
 public BonjourServiceUpdatedEventArgs(BonjourForwardDestination bfd)
 {
     this.bfd = bfd;
 }
Exemplo n.º 7
0
 protected void OnBonjourServiceUpdate(BonjourForwardDestination bfc)
 {
     if (this.synchronizingObject != null && this.synchronizingObject.InvokeRequired)
     {
         MethodInvoker invoker = new MethodInvoker(delegate()
         {
             OnBonjourServiceUpdate(bfc);
         });
         this.synchronizingObject.Invoke(invoker, null);
     }
     else
     {
         if (this.BonjourServiceUpdate != null)
         {
             this.BonjourServiceUpdate(bfc);
         }
     }
 }