Esempio n. 1
0
 /// <summary>
 /// Set focus from this parent menu item
 /// </summary>
 /// <param name="menuItem">Menu item.</param>
 /// <param name="OnExit">Action to do when dialog exits</param>
 public void SetFocus(IParentItem menuItem, Action <DialogType> OnExit = null)
 {
     this.OnExit = OnExit;
     Parent      = menuItem;
     hasFocus    = true;
     Parent.SetFocus(this);
 }
Esempio n. 2
0
 public void OnEnterPressed()
 {
     if (show)
     {
         dialog.OnEnterPressed();
     }
     else
     {
         show = true;
         Parent.SetFocus(this);
     }
 }
		public void Start(IParentItem parent)
		{
			Parent = parent;
			Parent.SetFocus (this);
			StartProgram ();
		}
Esempio n. 4
0
 public void Start(IParentItem parent)
 {
     Parent = parent;
     Parent.SetFocus(this);
     StartProgram();
 }