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; }
public Mesh() { MeshParts = new SideCollection<MeshPart>(); }
public Block() { Tiles = new SideCollection <Tile>(); }
BlockMesh() { MeshParts = new SideCollection<MeshPart>(); }
public Mesh() { MeshParts = new SideCollection <MeshPart>(); }
public Block() { Tiles = new SideCollection<Tile>(); }
BlockMesh() { MeshParts = new SideCollection <MeshPart>(); }