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

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