public waitingParty(int idParty) { partyDao = PartyDao.getInstance(); mainController = MainController.getInstance(); this.idParty = idParty; InitializeComponent(); monthread = new System.Threading.Thread(new System.Threading.ThreadStart(checkPlayerTwo)); monthread.Start(); }
public static PartyDao getInstance() { if (instance != null) { return(instance); } else { return(instance = new PartyDao()); } }
public Serveur() { InitializeComponent(); partyDAO = PartyDao.getInstance(); mainController = MainController.getInstance(); serveurDispo = partyDAO.SelectAll(); BindingList <Party> parties = new BindingList <Party>(serveurDispo); partiesGridView.DataSource = parties; partiesGridView.Columns["IdParty"].Visible = false; }