Esempio n. 1
0
 public ClimbPathView()
 {
     _model    = new ClimbPathModel();
     _grapples = new ObservableCollection <grapple_series>();
     InitializeComponent();
     DataContext = _model;
 }
Esempio n. 2
0
 public ClimbPathView(training a_tr, scalodromEntities3 a_db_context)
 {
     _model    = new ClimbPathModel(a_tr, a_db_context);
     _grapples = new ObservableCollection <grapple_series>((from grapplesList in a_db_context.grapple_series where grapplesList.id_training == a_tr.id select grapplesList));
     InitializeComponent();
     DataContext = _model;
     if (_grapples.Count > 0)
     {
         _model.Grapples = _grapples;
     }
 }