Пример #1
0
        public override void LoadFromAutoCat(AutoCat ac)
        {
            AutoCatName acName = ac as AutoCatName;

            if (acName == null)
            {
                return;
            }
            txtPrefix.Text         = (acName.Prefix == null) ? string.Empty : acName.Prefix;
            cbSkipThe.Checked      = acName.SkipThe;
            cbGroupNumbers.Checked = acName.GroupNumbers;
        }
Пример #2
0
        public override void SaveToAutoCat(AutoCat autocat)
        {
            AutoCatName ac = autocat as AutoCatName;

            if (ac == null)
            {
                return;
            }
            ac.Prefix       = txtPrefix.Text;
            ac.GroupNumbers = cbGroupNumbers.Checked;
            ac.SkipThe      = cbSkipThe.Checked;
        }
Пример #3
0
        public override void LoadFromAutoCat(AutoCat ac)
        {
            AutoCatName acName = ac as AutoCatName;

            if (acName == null)
            {
                return;
            }

            txtPrefix.Text         = acName.Prefix == null ? string.Empty : acName.Prefix;
            cbSkipThe.Checked      = acName.SkipThe;
            cbGroupNumbers.Checked = acName.GroupNumbers;
            chkgroupNonEnglishCharacters.Checked  = acName.GroupNonEnglishCharacters;
            txtGroupNonEnglishCharactersText.Text = acName.GroupNonEnglishCharactersText;
        }
Пример #4
0
        public override void SaveToAutoCat(AutoCat autoCat)
        {
            AutoCatName ac = autoCat as AutoCatName;

            if (ac == null)
            {
                return;
            }

            ac.Prefix       = txtPrefix.Text;
            ac.GroupNumbers = cbGroupNumbers.Checked;
            ac.SkipThe      = cbSkipThe.Checked;
            ac.GroupNonEnglishCharacters     = chkgroupNonEnglishCharacters.Checked;
            ac.GroupNonEnglishCharactersText = txtGroupNonEnglishCharactersText.Text;
        }