Пример #1
0
        public void load(IntelliScraper.Db.imageConvert rule)
        {

            this.rule = rule;

             cmbConvertType.Items.Clear();
            foreach(string s in Enum.GetNames(typeof(IntelliScraper.Db.imageConvertConvertType)))
                cmbConvertType.Items.Add(s);


            if (this.rule != null)
            {
                txtId.Text = this.rule.id;
                chkConvertFormat.IsChecked = this.rule.convertToFormat;
                chkResize.IsChecked = this.rule.changeSize;
                txtWidht.Text = this.rule.toSizew.ToString();
                txtHeight.Text = this.rule.toSizeH.ToString();
                chkCreateThumbs.IsChecked = this.rule.createThumbs;
                chkCreateThumbFolder.IsChecked = this.rule.createThumbFolder;
                if (rule.Thumbs != null)
                    listViewThumbs.ItemsSource = rule.Thumbs;

                cmbConvertType.SelectedValue = rule.convertType.ToString();
            }
            else
            {
                this.rule = new IntelliScraper.Db.imageConvert();
                
            }
                 
        }
Пример #2
0
 public void refresh(IntelliScraper.Db.imageConvert rule)
 {
     this.rule = rule;
 }