Exemplo n.º 1
0
        public MenuDialog(string caption, string button1, string button2 = null, string continueName = null)
        {
            menuDialog           = new ListDialog(caption, button1, button2);
            menuDialog.Response += MenuResponse;

            menuItems = new List <MenuDialogItem>();

            itemsData = new Hashtable();

            continueItem = null;

            if (continueName != null)
            {
                continueItem           = new MenuDialogItem(continueName);
                continueItem.Selected += ContinueResponse;
            }
        }
Exemplo n.º 2
0
 public void AddItem(MenuDialogItem item)
 {
     menuItems.Add(item);
 }