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

            this.eventControls = new List<EventControl>();
        }
Ejemplo 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);
        }
Ejemplo n.º 3
0
 public PopupDispatcher(EventViewModelDispatcher masterDispatcher)
 {
     this.masterDispatcher = masterDispatcher;
     this.attachedPopup = masterDispatcher.AttachedWeekGridControl.WeekGridPopup;
 }