Beispiel #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddSchedule f = new AddSchedule();

            f.ShowDialog();
            panelRemoveEdit.Enabled = false;
            clearLabels();

            loadEvents();
            PlaceItems();
        }
Beispiel #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            CalendarItem  i  = calendar1.GetSelectedItems().ToList()[0];
            CalendarEvent ev = _events[i];

            AddSchedule f = new AddSchedule(ev.type, ev);

            f.ShowDialog();

            panelRemoveEdit.Enabled = false;
            clearLabels();

            loadEvents();
            PlaceItems();
        }