public static FileState GetInstance() { if (_instance == null) { _instance = new FileOpened(); } return(_instance); }
public void Open() { Console.WriteLine("Otwieram plik"); _context.ChangeState(FileOpened.GetInstance()); }