Esempio n. 1
0
 public MatchScoreCard(MatchesObj selectedItem)
 {
     InitializeComponent();
     bowler  = TestStorage.ReadXml <ObservableCollection <Bowler> >("Bowlers.xml");
     batsmen = TestStorage.ReadXml <ObservableCollection <Batsmen> >("Batsmen.xml");
     Grd_scorecard_batsman.ItemsSource      = batsmen;
     Grd_scorecard_bowler.ItemsSource       = bowler;
     Grd_scorecard_batsman_inn2.ItemsSource = batsmen;
     Grd_scorecard_bowler_inn2.ItemsSource  = bowler;
 }
Esempio n. 2
0
        private void generateMatches(int cnt)
        {
            var        list    = new ObservableCollection <MatchesObj>();
            MatchesObj matches = new MatchesObj();



            for (int i = 0; i < cnt; i++)
            {
                matches = new MatchesObj
                {
                    matchId      = i,
                    matchBetween = "TeamA VS Team B",
                    result       = "Team A won by 20 Runs",
                    date         = "12/09/2014",
                    matchType    = "Home"
                };
                list.Add(matches);
            }
            TestStorage.WriteXml <ObservableCollection <MatchesObj> >(list, "Matches.xml");
        }
Esempio n. 3
0
 public MatchScoreCard(MatchesObj selectedItem, Matches matches) : this(selectedItem)
 {
     this.matches = matches;
 }