Пример #1
0
 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();
 }
Пример #2
0
 public static PartyDao getInstance()
 {
     if (instance != null)
     {
         return(instance);
     }
     else
     {
         return(instance = new PartyDao());
     }
 }
Пример #3
0
        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;
        }