public override void Process(opis message) { opis ms = SpecLocalRunAll(); var rez = new opis(); if (ms.isHere(UTF8BigEndian_to_Kirill, false)) { message.body = TemplatesMan.UTF8BigEndian_to_Kirill(ms.V(text)); } if (ms.isHere(UTF8Codes_to_Kirill, false)) //А { message.body = TemplatesMan.UTF8Codes_to_Kirill(ms.V(text)); } if (ms.isHere(UTF_to_win1251, false)) //%3E%3C; { message.body = TemplatesMan.UTF_to_win1251(ms.V(text)); } if (ms.isHere(blocks, false) && ms.isHere(substitution, false) && ms[blocks].listCou == ms[substitution].listCou) { var bl = ms[blocks].ListValues(); var subst = ms[substitution].ListValues(); if (ms.isHere(underline_in_blocks_to_space, false)) { bl = bl.Select(x => x.Replace("_", " ")).ToList(); subst = subst.Select(x => x.Replace("_", " ")).ToList(); } message.body = Replace(ms.V(text), bl.ToArray(), subst.ToArray()); } }
private void TemplatesRefreshButton_Click(object sender, RoutedEventArgs e) { TemplatesMan.RefreshTemplates(this.TemplatesCombo.Text); }