public void ToggleMeetingButtons(bool state) { foreach (Control control in MeetingsPanel.Controls) { MeetingView meetingView = control as MeetingView; meetingView.ToggleButtonsVisibility(state); } }
public void AddMeeting(Meeting meeting, bool isMonthly = false) { MeetingView newMeetingView = new MeetingView(this, meeting); if (isMonthly) { newMeetingView.ToggleDate(true); newMeetingView.ToggleButtonsVisibility(false); } MeetingsPanel.Controls.Add(newMeetingView); }
public void ToggleButtons(bool state) { AddMeetingButton.Enabled = state; MonthlyMeetingsButton.Enabled = state; Calendar.Enabled = state; foreach (Control control in MeetingsPanel.Controls) { MeetingView meetingView = control as MeetingView; meetingView.ToggleEditButton(state); meetingView.ToggleDeleteButton(state); } }