コード例 #1
0
        private void OnNewRoundStart(object sender, EventArgs e)
        {
            var tabItem = new TabItem {
                Header = "Round " + ivDraft.Rounds.Count
            };

            var matchView = new MatchView {
                TheDraft = ivDraft
            };

            matchView.SetRound(ivDraft.Rounds.Count - 1);
            matchView.onMatchReported += MatchView_onMatchReported;

            tabItem.Content = matchView;
            tabControl.Items.Insert(tabControl.Items.Count - 1, tabItem);
            tabControl.SelectedIndex++;
        }
コード例 #2
0
        private void OnNewRoundStart(object sender, EventArgs e)
        {
            var tabItem = new TabItem { Header = "Round " + ivDraft.Rounds.Count };

            var matchView = new MatchView { TheDraft = ivDraft };
            matchView.SetRound(ivDraft.Rounds.Count - 1);
            matchView.onMatchReported += MatchView_onMatchReported;

            tabItem.Content = matchView;
            tabControl.Items.Insert(tabControl.Items.Count - 1, tabItem);
            tabControl.SelectedIndex++;
        }