Esempio n. 1
0
        protected override void SetStyleToForm(object style)
        {
            CImageBmpStyleItem item = (CImageBmpStyleItem)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;
        }
Esempio n. 2
0
        // Token: 0x0600047D RID: 1149 RVA: 0x0001D5E8 File Offset: 0x0001B7E8
        protected override object GetStyleFromForm()
        {
            var cimageBmpStyleItem = new CImageBmpStyleItem
            {
                SaveFolder = txtFolder.Text,
                HaveMargin = chkWindow.Checked,
                CopyPath   = chkCopy.Checked
            };

            if (rdoSaveAs.Checked)
            {
                cimageBmpStyleItem.FileNameType = CImageStyleItem.EnumFileName.SaveAs;
            }
            else if (rdoScrapName.Checked)
            {
                cimageBmpStyleItem.FileNameType = CImageStyleItem.EnumFileName.ScrapName;
            }
            else
            {
                cimageBmpStyleItem.FileNameType = CImageStyleItem.EnumFileName.UseName;
            }
            cimageBmpStyleItem.DupliType = (CImageStyleItem.EnumDupliType)cmbDupli.SelectedIndex;
            cimageBmpStyleItem.FileName  = txtName.Text;
            return(cimageBmpStyleItem);
        }
Esempio n. 3
0
        protected override void SetTunedStyleItem(CStyleItem newOwn)
        {
            CImageBmpStyleItem item = (CImageBmpStyleItem)newOwn;

            base.SaveFolder   = item.SaveFolder;
            base.HaveMargin   = item.HaveMargin;
            base.CopyPath     = item.CopyPath;
            base.FileNameType = item.FileNameType;
            base.DupliType    = item.DupliType;
            base.FileName     = item.FileName;
        }
Esempio n. 4
0
 public ImageBmpStyleItemPanel(CImageBmpStyleItem item) : base(item)
 {
 }