NavigateTo() public method

public NavigateTo ( string file ) : void
file string
return void
Exemplo n.º 1
0
        public static NSAction a(this JsonObject json, JsonDialogViewController dvc)
        {
            if (json != null && json.ContainsKey("navigateto") && json.ContainsKey("action"))
            {
                string file   = json["navigateto"];
                string action = json["action"];
                return(() => {
                    dvc.InvokeAction(action, new object[] { file });
                });
            }

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


            if (json.ContainsKey("action"))
            {
                return(() => {
                    dvc.InvokeAction(json["action"], new Element("adf"));
                });
            }

            return(null);
        }
		public static NSAction a(this JsonObject json, JsonDialogViewController dvc){
			if (json!=null && json.ContainsKey("navigateto") && json.ContainsKey("action")) {
				string file = json["navigateto"];
				string action = json["action"];
				return ()=>{
					dvc.InvokeAction(action, new object[]{file});
				};
			}
			
			if (json.ContainsKey("navigateto")) {
				string file = json["navigateto"];
				return ()=>{
					dvc.NavigateTo(file);
				};
			}
			
			
			if (json.ContainsKey("action")) {
				return ()=>{
					dvc.InvokeAction(json["action"], new Element("adf"));
				};
			}
			
			return null;
			
		}