Exemple #1
0
        public override void Init()
        {
            base.Init();

            if (ScoreSheet == null)
            {
                return;
            }
            if (mBorderScoreSheetViewer != null)
            {
                ScoreSheetViewer viewer = new ScoreSheetViewer();
                viewer.ViewMode               = ViewMode;
                viewer.Settings               = Settings;
                viewer.Languages              = Languages;
                viewer.LangID                 = LangID;
                viewer.ViewClassic            = ViewClassic;
                viewer.ScoreSheet             = ScoreSheet;
                mBorderScoreSheetViewer.Child = viewer;
            }
            if (mBorderStatisticsViewer != null)
            {
                ScoreGroupStatisticsViewer viewer = new ScoreGroupStatisticsViewer();
                viewer.ViewMode               = ViewMode;
                viewer.Settings               = Settings;
                viewer.Languages              = Languages;
                viewer.LangID                 = LangID;
                viewer.ViewClassic            = ViewClassic;
                viewer.ScoreSheet             = ScoreSheet;
                mBorderStatisticsViewer.Child = viewer;
            }
        }
Exemple #2
0
 public void CaculateScore()
 {
     if (mBorderStatisticsViewer != null)
     {
         ScoreGroupStatisticsViewer viewer = new ScoreGroupStatisticsViewer();
         viewer.ViewMode                    = ViewMode;
         viewer.Settings                    = Settings;
         viewer.Languages                   = Languages;
         viewer.LangID                      = LangID;
         viewer.ViewClassic                 = ViewClassic;
         viewer.ScoreSheet                  = ScoreSheet;
         mBorderStatisticsViewer.Child      = viewer;
         mBorderStatisticsViewer.Visibility = Visibility.Visible;
     }
 }