Ejemplo n.º 1
0
 public void printHeader()
 {
     string[] s = new string[] { "Spec 1", "Spec 2", "Wholesale", "Market" };
     if (BrandPicker.SelectedIndex == -1 || !BrandPicker.SelectedItem.Equals("Additives"))
     {
         s = new string[] { "Brand", "Spec 1", "Spec 2", "Wholesale", "Market" };
         if (TypePicker.SelectedIndex == -1)
         {
             s = new string[] { "ItemType", "Brand", "Spec 1", "Spec 2", "Wholesale", "Market" };
         }
     }
     else if (TypePicker.SelectedIndex == -1)
     {
         s = new string[] { "ItemType", "Spec 1", "Spec 2", "Wholesale", "Market" };
     }
     int[] Spacing = new int[] { 1, 1, 1, 1, 1, 1 };
     if (!(bool)EditMode.IsChecked)
     {
         if (s.Length == 5)
         {
             Spacing = new int[] { 1, 2, 1, 1, 1 };
         }
         else if (s.Length == 4)
         {
             Spacing = new int[] { 2, 2, 1, 1 };
         }
     }
     GridFiller.rapidFillSpacedRowHeightLocked(s, TSection, Spacing, new int[] { 25, 0 });
 }