Example #1
0
 public Yedek YedekIceAktar(string path)
 {
     try
     {
         JavaScriptSerializer tercuman = new JavaScriptSerializer();
         Yedek y = tercuman.Deserialize <Yedek>(File.ReadAllText(path));
         return(y);
     }
     catch
     {
         return(null);
     }
 }
Example #2
0
 public void YedekAl(string path)
 {
     try
     {
         JavaScriptSerializer tercuman = new JavaScriptSerializer();
         Yedek y = new Yedek();
         y.HesapHareketleri = new HesapHareketRepository().Liste;
         y.Cariler          = new CariHesapRepository().Liste;
         y.Gruplar          = new CariGrupRepository().Liste;
         string sonuc = tercuman.Serialize(y);
         File.WriteAllText(path + "\\Yedek.json", sonuc);
     }
     catch { }
 }