public EventControlDispatcher(EventViewModelDispatcher masterDispatcher) { if (masterDispatcher == null) { throw new NullDispatcherException(); } this.masterDispatcher = masterDispatcher; this.attachedWeekGrid = this.masterDispatcher.AttachedWeekGridControl; this.eventControls = new List<EventControl>(); }
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); }
public PopupDispatcher(EventViewModelDispatcher masterDispatcher) { this.masterDispatcher = masterDispatcher; this.attachedPopup = masterDispatcher.AttachedWeekGridControl.WeekGridPopup; }