public override DestinationBase Clone()
 {
     FolderWatchSubscription clone = new FolderWatchSubscription(this.Enabled);
     clone.Path = this.Path;
     clone.IncludeSubfolders = this.IncludeSubfolders;
     return clone;
 }
 public override DestinationBase Create()
 {
     FolderWatchSubscription sub = new FolderWatchSubscription(true);
     sub.Path = this.textBoxPath.Text;
     sub.IncludeSubfolders = this.checkBoxSubdirectories.Checked;
     return sub;
 }
        public override DestinationBase Create()
        {
            FolderWatchSubscription sub = new FolderWatchSubscription(true);

            sub.Path = this.textBoxPath.Text;
            sub.IncludeSubfolders = this.checkBoxSubdirectories.Checked;
            return(sub);
        }
        public override DestinationBase Clone()
        {
            FolderWatchSubscription clone = new FolderWatchSubscription(this.Enabled);

            clone.Path = this.Path;
            clone.IncludeSubfolders = this.IncludeSubfolders;
            return(clone);
        }
        public override void Initialize(bool isSubscription, DestinationListItem fdli, DestinationBase db)
        {
            FolderWatchSubscription sub = db as FolderWatchSubscription;

            if (sub != null)
            {
                this.textBoxPath.Text = sub.Path;
                this.checkBoxSubdirectories.Checked = sub.IncludeSubfolders;
            }
        }
        public override void Update(DestinationBase db)
        {
            FolderWatchSubscription sub = db as FolderWatchSubscription;

            if (sub != null)
            {
                sub.Path = this.textBoxPath.Text;
                sub.IncludeSubfolders = this.checkBoxSubdirectories.Checked;
                sub.Subscribe();
            }
        }