Esempio n. 1
0
 /// <summary>
 /// Loads the combo box's with the team names
 /// </summary>
 /// <param name="liveMatchTab"></param>
 /// <param name="teams"></param>
 private void loadTeamComboBoxes(LiveMatchTab liveMatchTab, List<Team> teams)
 {
     liveMatchTab.loadTeamSelectComboBox(teams);
 }
Esempio n. 2
0
 /// <summary>
 /// Wires up the buttons for the live match
 /// </summary>
 /// <param name="liveMatchTab"></param>
 private void wireLiveMatchButtons(LiveMatchTab liveMatchTab)
 {
     liveMatchTab.btnStartPause.Click += btnStartPause_Click;
     liveMatchTab.btnFlagPlusA.Click += btnFlagPlusA_Click;
     liveMatchTab.btnFlagPlusB.Click += btnFlagPlusB_Click;
     liveMatchTab.btnFlagMinusA.Click += btnFlagMinusA_Click;
     liveMatchTab.btnFlagMinusB.Click += btnFlagMinusB_Click;
     liveMatchTab.btnTagMinusA.Click += btnTagMinusA_Click;
     liveMatchTab.btnTagMinusB.Click += btnTagMinusB_Click;
     liveMatchTab.btnTagPlusA.Click += btnTagPlusA_Click;
     liveMatchTab.btnTagPlusB.Click += btnTagPlusB_Click;
     liveMatchTab.btnReset.Click += btnReset_Click;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.mainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.tabReg = ((System.Windows.Controls.TabItem)(target));
     return;
     case 3:
     this.regMenu = ((NerfWarsPrototype1.RegistrationTab)(target));
     return;
     case 4:
     this.playGame = ((NerfWarsPrototype1.LiveMatchTab)(target));
     return;
     }
     this._contentLoaded = true;
 }