Exemplo n.º 1
0
        private static void OnIsNAChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            StandardPreviewer viewer = (StandardPreviewer)d;

            if (viewer != null)
            {
                viewer.OnIsNAChanged((bool)e.OldValue, (bool)e.NewValue);
            }
        }
Exemplo n.º 2
0
 private void CreateItems()
 {
     if (ScoreGroup != null)
     {
         mListScoreItems.Clear();
         for (int i = 0; i < ScoreGroup.Items.Count; i++)
         {
             ScoreItem  item       = ScoreGroup.Items[i];
             ScoreGroup scoreGroup = item as ScoreGroup;
             if (scoreGroup != null)
             {
                 ScoreGroupPreViewer scoreGroupViewer = new ScoreGroupPreViewer();
                 scoreGroupViewer.ScoreGroup  = scoreGroup;
                 scoreGroupViewer.Settings    = Settings;
                 scoreGroupViewer.Languages   = Languages;
                 scoreGroupViewer.LangID      = LangID;
                 scoreGroupViewer.ViewClassic = ViewClassic;
                 if (ViewClassic == ScoreItemClassic.Table)
                 {
                     if (i > 0)
                     {
                         scoreGroupViewer.BorderThickness = new Thickness(1, 1, 0, 0);
                     }
                     else
                     {
                         scoreGroupViewer.BorderThickness = new Thickness(0, 1, 0, 0);
                     }
                 }
                 mListScoreItems.Add(scoreGroupViewer);
             }
             Standard standard = item as Standard;
             if (standard != null)
             {
                 StandardPreviewer standardViewer = new StandardPreviewer();
                 standardViewer.Standard    = standard;
                 standardViewer.Settings    = Settings;
                 standardViewer.Languages   = Languages;
                 standardViewer.LangID      = LangID;
                 standardViewer.ViewClassic = ViewClassic;
                 if (ViewClassic == ScoreItemClassic.Table)
                 {
                     if (i > 0)
                     {
                         standardViewer.BorderThickness = new Thickness(1, 1, 0, 0);
                     }
                     else
                     {
                         standardViewer.BorderThickness = new Thickness(0, 1, 0, 0);
                     }
                 }
                 mListScoreItems.Add(standardViewer);
             }
         }
     }
 }