static void LoadHistory() { string jsonread = string.Empty; string filename = "history.his"; Console.WriteLine("Odczyt z pliku..."); try { if (File.Exists(filename)) { byte[] fileEncrypted = File.ReadAllBytes(filename); jsonread = Global.aes.Decrypt(fileEncrypted); } } catch (Exception e) { Global.History = JsonHelp.DeserializeHistory(""); } Global.History = JsonHelp.DeserializeHistory(jsonread); }