예제 #1
0
 protected MeasureAttributeBase(AttributeType type, int staffNumber, int fractionPosition)
 {
     attributeType = type;
     SetMargins();
     colorStyle            = ViewModel.ViewModelLocator.Instance.Main.CurrentLayout.LayoutStyle.ItemsColorsStyle;
     itemCanvas            = new Canvas();
     this.staffNumber      = staffNumber;
     this.fractionPosition = fractionPosition;
     isVisible             = true;
     color = colorStyle.DefaultColor;
 }
예제 #2
0
 public Layout()
 {
     barlineStyle      = new BarlineLayoutStyle();
     beamStyle         = new BeamLayoutStyle();
     measureStyle      = new MeasureLayoutStyle();
     notesStyle        = new NotesLayoutStyle();
     _itemsColorsStyle = new ItemsColorsStyle();
     pageStyle         = new PageLayoutStyle();
     colors            = new Dictionary <int, Brush>()
     {
         [1] = Brushes.Black,
         [2] = Brushes.Navy,
         [3] = Brushes.DarkSlateGray,
         [4] = Brushes.DarkRed,
         [5] = Brushes.Indigo,
         [6] = Brushes.DodgerBlue,
         [7] = Brushes.Green,
         [8] = Brushes.OrangeRed,
     };
 }