Esempio n. 1
0
        public TerminPopupViewModel(int id)
        {
            db = new SteinbachEntities();

            var termin = db.CRMTermine.Where(t => t.id == id).SingleOrDefault();

            TerminView = new TermineTerminViewModel(termin, db);
            // ActivateItem(TerminView);
        }
Esempio n. 2
0
        public TerminedatenViewModel(TermineTerminViewModel TermineTerminVm, TermineListeViewModel TermineListeVm, IEventAggregator Events)
        {
            TermineListeVM = TermineListeVm;
            TermineTerminVM = TermineTerminVm;
            //TermineListeVM.onTerminChanged += new Action<int>(TermineListeVM_onTerminChanged);
            SelectionEnabled = true;
            Events.Subscribe(this);
            //TabControlSelectedIndex = 0;
            //TabTermineTerminEnabled = true;
            //TabTermineListeEnabled = false;

        }