public override DestinationBase Create()

        {
            NotifyIOSubscription nios = new NotifyIOSubscription(this.textBoxDescription.Text, true, this.textBoxOutletUrl.Text);

            return(nios);
        }
Ejemplo n.º 2
0
        public override void Update(DestinationBase fd)
        {
            NotifyIOSubscription nios = fd as NotifyIOSubscription;

            if (nios != null)
            {
                nios.Description = this.textBoxDescription.Text;
                nios.OutletUrl   = this.textBoxOutletUrl.Text;
                nios.Subscribe();
            }
        }
Ejemplo n.º 3
0
        public override void Initialize(bool isSubscription, DestinationListItem fdli, DestinationBase fd)
        {
            this.doValidation = true;

            // set text box values
            this.textBoxDescription.Text    = String.Empty;
            this.textBoxDescription.Enabled = true;
            this.textBoxOutletUrl.Text      = String.Empty;
            this.textBoxOutletUrl.Enabled   = true;

            NotifyIOSubscription nios = fd as NotifyIOSubscription;

            if (nios != null)
            {
                this.textBoxDescription.Text = nios.Description;
                this.textBoxOutletUrl.Text   = nios.OutletUrl;
            }

            ValidateInputs();

            this.textBoxDescription.Focus();
        }
 public override DestinationBase Create()
 {
     NotifyIOSubscription nios = new NotifyIOSubscription(this.textBoxDescription.Text, true, this.textBoxOutletUrl.Text);
     return nios;
 }