Пример #1
0
        public void ToggleEditButtons(bool state)
        {
            foreach (Control control in EventsPanel.Controls)
            {
                EventView eventView = control as EventView;

                eventView.ToggleEditButton(state);
            }
        }
Пример #2
0
        public void ToggleButtons(bool state)
        {
            AddEventButton.Enabled      = state;
            MonthlyEventsButton.Enabled = state;
            Calendar.Enabled            = state;
            foreach (Control control in EventsPanel.Controls)
            {
                EventView eventView = control as EventView;

                eventView.ToggleEditButton(state);
                eventView.ToggleDeleteButton(state);
            }
        }
Пример #3
0
        public void AddEvent(Event newEvent)
        {
            EventView newEventView = new EventView(this, newEvent);

            EventsPanel.Controls.Add(newEventView);
        }