예제 #1
0
        public TrainingView()
        {
            InitializeComponent();
            model = new TrainingViewModel();

            DataContext = model;
        }
예제 #2
0
 public PlayTrainingModel(training a_tr, scalodromEntities3 a_db_context)
 {
     initialModel           = new TrainingViewModel(a_tr, a_db_context);
     CurrentPlayButtonImage = c_playImage;
     IsPlaying      = false;
     CurrentTime    = 0;
     MaxPrgBarValue = CalculatePrgBarLength();
     if (_bw == null)
     {
         _bw = new BackgroundWorker();
         _bw.WorkerSupportsCancellation = true;
         _bw.DoWork += Bw_DoWork;
         _bw.RunWorkerAsync();
     }
 }
예제 #3
0
 public TrainingView(training a_tr, scalodromEntities3 a_db_context)
 {
     InitializeComponent();
     model       = new TrainingViewModel(a_tr, a_db_context);
     DataContext = model;
 }