예제 #1
0
        private void CreateEvent_Click(object sender, EventArgs e)
        {
            if (_events.Add())
            {
                if (!_events.SaveEvents())
                {
                    MessageBox.Show("Unable to save some or all events.", "Error Occurred.", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }

                EIV.ClearEventInfo();
                EIV.UpdateEvents(EventCal.GetControl().SelectionRange.Start);
                EIV.ToggleButtons();

                RefreshEventSearch();
            }
        }
예제 #2
0
 private void Calendar_DateChanged(object sender, DateRangeEventArgs e)
 {
     EIV.ClearEventInfo();
     EIV.UpdateEvents(EventCal.GetControl().SelectionRange.Start);
     EIV.ToggleButtons();
 }