예제 #1
0
파일: Form1.cs 프로젝트: t2k-dev/PT-3.1
        public string RefreshTitle(string title)
        {
            string result = title;

            if (chbAddArtist.Checked)
            {
                result = Functions.AddArtist(result, tbArtist.Text);
            }
            if (chbRemoveNum.Checked)
            {
                result = Functions.RemoveNumber(result);
            }
            if (chbTranslit.Checked)
            {
                result = Functions.Translit(result);
            }
            if (chbReplace.Checked)
            {
                result = Functions.Replacer(result, tbFirst_String.Text, tbSecond_String.Text);
            }
            if (chbDef.Checked == true)
            {
                result = Functions.StrTrans(result);
            }
            return(result);
        }