public EventControlDispatcher(EventViewModelDispatcher masterDispatcher)
        {
            if (masterDispatcher == null)
            {
                throw new NullDispatcherException();
            }
            this.masterDispatcher = masterDispatcher;
            this.attachedWeekGrid = this.masterDispatcher.AttachedWeekGridControl;

            this.eventControls = new List<EventControl>();
        }
Esempio n. 2
0
        public MainWindow()
        {
            InitializeComponent();
            //this.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));

            eventData = new OrganizerEventData();
            eventData.GetEventsFromDatabase();

            eventViewModelDispatcher = new EventViewModelDispatcher();
            eventViewModelDispatcher.AtachDataSource(eventData);
            eventViewModelDispatcher.AttachControl(this.WeekGrid);
        }
Esempio n. 3
0
 public PopupDispatcher(EventViewModelDispatcher masterDispatcher)
 {
     this.masterDispatcher = masterDispatcher;
     this.attachedPopup = masterDispatcher.AttachedWeekGridControl.WeekGridPopup;
 }