private void FillData(string watchValue, ObservableCollection <Box> tmp) { UnusedBoxes.StworzListeUnused(Boxes.GetBoxList(), tmp); CalculatedBoxes.SetBoxList(tmp); CalculatedBoxes.ReorderBoxList(); // Filling labels int used = tmp.Count(); int unused = UnusedBoxes.GetBoxNumber(); BoxesLabel.Content = "" + (used + unused); BoxesUsedLabel.Content = "" + used; BoxesUnusedLabel.Content = "" + unused; TimeTakenLabel.Content = watchValue + " miliseconds"; // Redrawing graph reDrawAll(); GridView.IsVisible = true; }