public override void Initialize(bool isSubscription, DestinationListItem fdli, DestinationBase fd)

        {
            this.doValidation = true;



            PrefPriority[] priorityChoices = PrefPriority.GetList(false);

            this.comboBoxMinimumPriority.Items.Add(Properties.Resources.AddProwl_AnyPriority);

            for (int i = 0; i < priorityChoices.Length; i++)

            {
                this.comboBoxMinimumPriority.Items.Add(priorityChoices[i]);
            }

            this.comboBoxMinimumPriority.SelectedIndex = 0;



            // set text box values

            this.textBoxUsername.Text = String.Empty;

            this.textBoxUsername.Enabled = true;

            this.textBoxPassword.Text = String.Empty;

            this.textBoxPassword.Enabled = true;

            this.textBoxFormat.Text = TwitterForwardDestination.DefaultFormat;

            this.textBoxFormat.Enabled = true;

            this.comboBoxMinimumPriority.SelectedIndex = 0;

            this.comboBoxMinimumPriority.Enabled = true;



            TwitterForwardDestination tfd = fd as TwitterForwardDestination;

            if (tfd != null)

            {
                this.textBoxUsername.Text = tfd.Username;

                this.textBoxPassword.Text = tfd.Password;

                this.textBoxFormat.Text = tfd.Format;

                this.checkBoxOnlyWhenIdle.Checked = tfd.OnlyWhenIdle;

                if (tfd.MinimumPriority != null && tfd.MinimumPriority.HasValue)
                {
                    this.comboBoxMinimumPriority.SelectedItem = PrefPriority.GetByValue(tfd.MinimumPriority.Value);
                }
            }



            ValidateInputs();



            this.textBoxUsername.Focus();
        }
        public override void Initialize(bool isSubscription, DestinationListItem fdli, DestinationBase fd)

        {
            this.doValidation = true;



            this.panelSMTPSettings.Visible = false;



            PrefPriority[] priorityChoices = PrefPriority.GetList(false);

            this.comboBoxMinimumPriority.Items.Add(Properties.Resources.AddProwl_AnyPriority);

            for (int i = 0; i < priorityChoices.Length; i++)

            {
                this.comboBoxMinimumPriority.Items.Add(priorityChoices[i]);
            }

            this.comboBoxMinimumPriority.SelectedIndex = 0;



            // set text box values

            this.textBoxDescription.Text = String.Empty;

            this.textBoxDescription.Enabled = true;

            this.textBoxUsername.Text = String.Empty;

            this.textBoxUsername.Enabled = true;

            this.comboBoxMinimumPriority.SelectedIndex = 0;

            this.comboBoxMinimumPriority.Enabled = true;



            EmailForwardDestination efd = fd as EmailForwardDestination;

            if (efd != null)

            {
                this.textBoxDescription.Text = efd.Description;

                this.textBoxUsername.Text = efd.To;

                if (efd.MinimumPriority != null && efd.MinimumPriority.HasValue)
                {
                    this.comboBoxMinimumPriority.SelectedItem = PrefPriority.GetByValue(efd.MinimumPriority.Value);
                }

                this.checkBoxOnlyWhenIdle.Checked = efd.OnlyWhenIdle;

                this.smtp = efd.SMTPConfiguration;
            }

            this.labelSMTPValues.Text = String.Format("{0}", this.smtp.Host);



            ValidateInputs();



            this.textBoxDescription.Focus();
        }