public static FileState GetInstance() { if (_instance == null) { _instance = new FileClosed(); } return(_instance); }
public void Close() { Console.WriteLine("Zamykam plik"); _context.ChangeState(FileClosed.GetInstance()); }