Exemple #1
0
        protected override void SetStyleToForm(object style)
        {
            CImagePngStyleItem item = (CImagePngStyleItem)style;

            this.InitializeComponent();
            this.Text              = item.GetDisplayName();
            this.txtFolder.Text    = item.SaveFolder;
            this.chkWindow.Checked = item.HaveMargin;
            this.chkCopy.Checked   = item.CopyPath;
            switch (item.FileNameType)
            {
            case CImageStyleItem.EnumFileName.SaveAs:
                this.rdoSaveAs.Checked = true;
                break;

            case CImageStyleItem.EnumFileName.ScrapName:
                this.rdoScrapName.Checked = true;
                break;

            case CImageStyleItem.EnumFileName.UseName:
                this.rdoName.Checked = true;
                break;
            }
            this.cmbDupli.SelectedIndex = (int)item.DupliType;
            this.txtName.Text           = item.FileName;
        }
Exemple #2
0
        protected override void SetStyleToForm(object style)
        {
            CImagePngStyleItem item = (CImagePngStyleItem)style;

            this.InitializeComponent();
            this.Text             = item.GetDisplayName();
            this.barQuality.Value = item.Quality;
        }