Esempio n. 1
0
 private void schedulerControl1_PreparePopupMenu(object sender, DevExpress.XtraScheduler.PreparePopupMenuEventArgs e)
 {
     if (e.Menu.Id == DevExpress.XtraScheduler.SchedulerMenuItemId.DefaultMenu)
     {
         e.Menu.Items.Add(new SchedulerMenuItem("test", MyClickHandler));
     }
 }
Esempio n. 2
0
 private void schedulerControl1_PreparePopupMenu(object sender, DevExpress.XtraScheduler.PreparePopupMenuEventArgs e)
 {
     if (e.Menu.Id == SchedulerMenuItemId.AppointmentMenu)
     {
         DXMenuItem oldDelete = GetMenuItem(e.Menu, "&Delete");
         oldDelete.Visible = false;
         DXMenuItem newDelete = new DXMenuItem("&Delete", Deleted_Click, oldDelete.Image);
         e.Menu.Items.Add(newDelete);
     }
 }