private void SplitWallClick(object sender, RoutedEventArgs e) { int splitPercentage = int.Parse("50"); //model.SplitEdge(splitPercentage, model.GetRandomLine()); s.Split(splitPercentage, LineGrid.SelectedItem as MyLine); //int index = LineGrid.SelectedIndex; //model.SplitEdge(splitPercentage, LineGrid.SelectedItem as MyLine); //Paint(); }