예제 #1
0
        public LinjeModel(LinjeViewModel lvm, NodModelBase n1, NodModelBase n2)
        {
            LinjeViewModel = lvm;
            Nod1           = n1;
            Nod2           = n2;

            SetOnPropertyChanged();
        }
예제 #2
0
        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;
        }