private void initialiseSides()
        {
            //SideCollection = new SeriesCollection();
            SideCollection.Clear();
            var sides  = context.sides.ToList();
            var values = new ChartValues <int>();

            foreach (var side in sides)
            {
                values.Add(side.orders.Count);
            }
            SideCollection.Add(
                new ColumnSeries
            {
                Title      = Application.Current.FindResource("Sides") as string,
                Values     = values,
                DataLabels = true
            }
                );
            List <string> sideNames = new List <string>();

            foreach (var side in sides)
            {
                sideNames.Add(Application.Current.FindResource(side.name) as string);
            }
            SideLabels  = null;
            SideLabels  = sideNames.ToArray();
            DataContext = SideLabels;
            DataContext = this;
        }
示例#2
0
 public Mesh()
 {
     MeshParts = new SideCollection<MeshPart>();
 }
示例#3
0
 public Block()
 {
     Tiles = new SideCollection <Tile>();
 }
示例#4
0
 BlockMesh()
 {
     MeshParts = new SideCollection<MeshPart>();
 }
示例#5
0
 public Mesh()
 {
     MeshParts = new SideCollection <MeshPart>();
 }
示例#6
0
 public Block()
 {
     Tiles = new SideCollection<Tile>();
 }
示例#7
0
 BlockMesh()
 {
     MeshParts = new SideCollection <MeshPart>();
 }