/// <summary>
 /// Set existing job values.
 /// </summary>
 /// <param name="target"></param>
 public void SetJobTarget(ArchiveTranscoderJobTarget target)
 {
     this.textBoxAsxUrl.Text          = target.AsxUrl;
     this.textBoxPresentationUrl.Text = target.PresentationUrl;
     this.textBoxSlideBaseUrl.Text    = target.SlideBaseUrl;
     this.textBoxWmvUrl.Text          = target.WmvUrl;
     this.checkBoxCreateAsx.Checked   = Convert.ToBoolean(target.CreateAsx);
     this.checkBoxCreateWbv.Checked   = Convert.ToBoolean(target.CreateWbv);
 }
        /// <summary>
        /// Get results
        /// </summary>
        /// <returns></returns>
        public ArchiveTranscoderJobTarget GetJobTarget()
        {
            ArchiveTranscoderJobTarget target = new ArchiveTranscoderJobTarget();

            target.Type      = "stream";
            target.AsxUrl    = this.textBoxAsxUrl.Text.Trim();
            target.CreateAsx = this.checkBoxCreateAsx.Checked.ToString();
            if (target.CreateAsx.ToLower().Equals("false"))
            {
                target.CreateWbv = "false";
            }
            else
            {
                target.CreateWbv = this.checkBoxCreateWbv.Checked.ToString();
            }
            string purl = this.textBoxPresentationUrl.Text.Trim();

            target.PresentationUrl = purl.Equals(string.Empty) ? null : purl;
            string sburl = this.textBoxSlideBaseUrl.Text.Trim();

            target.SlideBaseUrl = sburl.Equals(string.Empty) ? null : sburl;
            target.WmvUrl       = this.textBoxWmvUrl.Text.Trim();
            return(target);
        }