コード例 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddSchedule f = new AddSchedule();

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

            loadEvents();
            PlaceItems();
        }
コード例 #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();
        }