Ejemplo n.º 1
0
        private void InitTipValue()
        {
            Standard standard = ScoreItem as Standard;

            if (standard != null)
            {
                ScoreSheet scoreSheet = standard.ScoreSheet;
                if (scoreSheet != null)
                {
                    if (scoreSheet.UsePointSystem)
                    {
                        if (ViewMode == 1 || ViewMode == 2)
                        {
                            ScoreTip = string.Format("{0}/{1}", standard.Score, standard.PointSystem);
                        }
                        else
                        {
                            ScoreTip = string.Format("{0}/{1}", standard.GetDefaultValue(), standard.PointSystem);
                        }
                    }
                    else
                    {
                        if (ViewMode == 1 || ViewMode == 2)
                        {
                            ScoreTip = string.Format("{0}/{1}", standard.Score, standard.PointSystem);
                        }
                        else
                        {
                            ScoreTip = string.Format("{0}/{1}", standard.GetDefaultValue(), standard.TotalScore);
                        }
                    }
                }
            }
        }