Ejemplo n.º 1
0
        public void SetContextMenuEnabled(bool isEnabled)
        {
            if (isEnabled)
            {
                var radContextMenu = new RadContextMenu();
                var menuItem       = new RadMenuItem()
                {
                    Header = "Choose Seat #" + SeatNumber.ToString()
                };
                menuItem.Click += MenuItem_Click;

                radContextMenu.Items.Add(menuItem);
                RadContextMenu.SetContextMenu(SeatShape, radContextMenu);

                IsContextMenuEnabled = true;
            }
            else
            {
                RadContextMenu.SetContextMenu(SeatShape, null);

                IsContextMenuEnabled = false;
            }
        }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return("Booked:[index:" + IndexCourse.ToString() +
            ", seat:" + SeatNumber.ToString() + ", Occuped:" + Occupied.ToString() + "]");
 }