コード例 #1
0
        private void cmbEvents_SelectedIndexChanged(object sender, EventArgs e)
        {
            tabEditEvent.Controls.Clear();

            var eventEditControl = new ucEventEdit((Event) cmbEvents.SelectedItem);
            eventEditControl.EventSuccessfullyModified += Event_Successfully_Modified;

            tabEditEvent.Controls.Add(eventEditControl);

            tabEditLocations.Controls.Clear();
            var locationEditControl = new ucLocationEdit((Event) cmbEvents.SelectedItem);
            tabEditLocations.Controls.Add(locationEditControl);
        }
コード例 #2
0
        public EventManagementForm()
        {
            InitializeComponent();

            EventList = LogicCollection.EventLogic.GetAllEvents();
            RefreshEventList();

            cmbEvents.SelectedIndex = 0;

            var eventAddControl = new ucEventEdit();
            eventAddControl.EventSuccessfullyModified += Event_Successfully_Modified;

            tabAddEvent.Controls.Add(eventAddControl);
        }