Пример #1
0
        public override void AddCapability(ICapability capability)
        {
            base.AddCapability (capability);

            if (fileTransferCapability == null)
                fileTransferCapability = (FileTransferCapability)capability;
        }
Пример #2
0
        public override bool RemoveCapability(ICapability capability)
        {
            bool ret = base.RemoveCapability (capability);
            fileTransferCapability = null;
            this.Close();

            return ret;
        }
        public override bool RemoveCapability(ICapability capability)
        {
            bool ret = base.RemoveCapability(capability);

            fileTransferCapability = null;
            this.Close();

            return(ret);
        }
        public override void AddCapability(ICapability capability)
        {
            base.AddCapability(capability);

            if (fileTransferCapability == null)
            {
                fileTransferCapability = (FileTransferCapability)capability;
            }
        }
Пример #5
0
        public override void AddCapability(ICapability capability)
        {
            base.AddCapability(capability);

            if (fileTransferCapability == null)
            {
                fileTransferCapability = (FileTransferCapability)capability;
                fileTransferCapability.ObjectReceived +=
                    new CapabilityObjectReceivedEventHandler(ObjectReceived);
            }
        }
Пример #6
0
        public override void AddCapability(ICapability capability)
        {
            base.AddCapability (capability);

            if (fileTransferCapability == null)
            {
                fileTransferCapability = (FileTransferCapability)capability;
                fileTransferCapability.ObjectReceived += 
                    new CapabilityObjectReceivedEventHandler(ObjectReceived);
            }
        }
Пример #7
0
        public override bool RemoveCapability(ICapability capability)
        {
            bool ret = base.RemoveCapability(capability);

            if (ret)
            {
                fileTransferCapability.ObjectReceived -=
                    new CapabilityObjectReceivedEventHandler(ObjectReceived);
                fileTransferCapability = null;
            }

            return(ret);
        }
Пример #8
0
        public override bool RemoveCapability(ICapability capability)
        {
            bool ret = base.RemoveCapability (capability);

            if (ret)
            {
                fileTransferCapability.ObjectReceived -= 
                    new CapabilityObjectReceivedEventHandler(ObjectReceived);
                fileTransferCapability = null;
            }

            return ret;
        }