public LinjeModel(LinjeViewModel lvm, NodModelBase n1, NodModelBase n2) { LinjeViewModel = lvm; Nod1 = n1; Nod2 = n2; SetOnPropertyChanged(); }
private void Line_MouseDown(object sender, MouseButtonEventArgs e) { Line line = sender as Line; LinjeViewModel l = line.DataContext as LinjeViewModel; l.Split(e.GetPosition(this)); e.Handled = true; }