protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            arraySize.Maximum = size;
            arraySize.Minimum = minSize;
            arraySize.Value   = arraySize.Maximum;

            algoSpeed.Maximum = 100;
            algoSpeed.Minimum = 1;
            algoSpeed.Value   = 100;

            bubble.Opacity = 0.5;

            InitializationClass.InitializeLineItems(itemsPanel);
        }
 private void createBtn_Click(object sender, RoutedEventArgs e)
 {
     InitializationClass.InitializeLineItems(itemsPanel, size);
 }