MonoMobile.Forms.FormDialogViewController.Execute C# (CSharp) Method

Execute() public method

public Execute ( ControllerAction action, Element el, System.Action completed ) : void
action ControllerAction
el MonoTouch.Dialog.Element
completed System.Action
return void
		public void Execute(ControllerAction action, Element el, Action completed){
			action.Execute(this, (ActivityElement)el, completed);	
		}
		

Usage Example

        public static Action asAction(this JsonObject json, FormDialogViewController dvc)
        {
            if (json.ContainsKey(Constants.Action))
            {
                string actionName = json[Constants.Action];
                return(() => {
                    ControllerAction act;
                    if (json.ContainsKey(Constants.NavigateTo))
                    {
                        act = new ControllerAction(actionName, json[Constants.NavigateTo]);
                    }
                    else
                    {
                        act = new ControllerAction(actionName);
                    }
                    dvc.Execute(act, null, () => {});
                });
            }

            if (json.ContainsKey(Constants.NavigateTo))
            {
                string file = json[Constants.NavigateTo];
                return(() => {
                    dvc.NavigateTo(file);
                });
            }

            return(null);
        }
All Usage Examples Of MonoMobile.Forms.FormDialogViewController::Execute