public static ObjectPoolClient getInstance()
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new ObjectPoolClient();
     }
     return uniqueInstance;
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 public Form1(MyFacade facade)
 {
     InitializeComponent();
     this.facade = facade;
     this.pool = ObjectPoolClient.getInstance();
 }