Ejemplo n.º 1
0
        /// <summary>
        /// Handle the command. There is only the OK
        /// button that we have to handle
        /// </summary>
        /// <param name="command">command to execute</param>
        /// <param name="handled">was it handled?</param>
        public void OnRunCommand(string command, ref bool handled)
        {
            handled = true;

            switch (command)
            {
            case "@ok":
                Windows.CloseAsync(this);
                break;

            default:
                handled = false;
                break;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Invoked when the user actuates a button in
 /// the scanner form
 /// </summary>
 /// <param name="widget">widget actuated</param>
 /// <param name="handled">was this handled here?</param>
 public override void OnWidgetActuated(Widget widget, ref bool handled)
 {
     base.OnWidgetActuated(widget, ref handled);
     Windows.CloseAsync(this);
 }