public void SaveToIshletkuchi(string soz) { string filenm = Path.Combine(Application.StartupPath, gImlaIshletkuchi); soz = soz.ToLower().Replace(Uyghur.Sozghuch, ""); soz = Uyghur.ToUEY(soz) ?? soz; IshletkuchiDic.Add(soz); try{ File.AppendAllText(filenm, soz + " 1" + System.Environment.NewLine, System.Text.Encoding.UTF8); }catch { } }
public void SaveToXataToghra(string xata, string toghra) { if (!XataToghra.ContainsKey(xata)) { string filenm = Path.Combine(Application.StartupPath, gImlaXataToghra); string xt = xata.Trim().Replace(Uyghur.Sozghuch, "").ToLower(); string togh = toghra.Trim().Replace(Uyghur.Sozghuch, "").ToLower(); string bk = xt + "=" + togh; bk = Uyghur.ToUEY(bk) ?? bk; XataToghraBuf.Add(bk); try{ File.AppendAllText(filenm, bk + System.Environment.NewLine, System.Text.Encoding.UTF8); }catch { } } }