Ejemplo n.º 1
0
        public AbsenceViewModel(IViewContainer container, string sessionId)
        {
            Container = container;
            SessionId = sessionId;

            Provider = new AbsenceProvider();
            Provider.AbsenceEvent += AbsenceLoadedEvent;
        }
Ejemplo n.º 2
0
        public AbsenceComposeViewModel(IViewContainer container, ViewModelRelationship parent,
            string sessionId)
        {
            Parent = parent;
            Container = container;
            SessionId = sessionId;

            absenceProvider = new AbsenceProvider();
            absenceProvider.AbsenceEvent += (parent.ViewModel as AbsenceViewModel).AbsenceLoadedEvent;
            // Local event
            absenceProvider.AbsenceEvent += AbsenceLoadedEvent;

            dispatchProvider = new DispatchCourseProvider();
            dispatchProvider.DispatchCouseEvent = DispatchLoadedEvent;
        }