Beispiel #1
0
        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 {
            }
        }
Beispiel #2
0
 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 {
         }
     }
 }