public static ObjectPoolClient getInstance() { if (uniqueInstance == null) { uniqueInstance = new ObjectPoolClient(); } return uniqueInstance; }
public Form1() { InitializeComponent(); this.bank = new Bank(); this.facade = new MyFacade(bank); this.formImplementation = new FormImplementation(); facade.setImplementation(this.formImplementation); facade.createWindows(); this.pool = ObjectPoolClient.getInstance(); this.buttonLoadBank.Enabled = false; this.buttonNotFollow.Enabled = false; memento = new ClientQueueMemento(); }
public Form1(MyFacade facade) { InitializeComponent(); this.facade = facade; this.pool = ObjectPoolClient.getInstance(); }