From 461501a25c316505af9b71c4c9e2d2f0486a4508 Mon Sep 17 00:00:00 2001 From: Poli97 Date: Fri, 24 Apr 2020 16:47:06 +0200 Subject: [PATCH] Finished Xamarin Custom Action --- .../.vs/XAMARINCustomAction/xs/UserPrefs.xml | 18 ++++++++------- .../CustomActionIos.cs | 23 ++----------------- 2 files changed, 12 insertions(+), 29 deletions(-) diff --git a/CustomAction/XAMARINCustomAction/.vs/XAMARINCustomAction/xs/UserPrefs.xml b/CustomAction/XAMARINCustomAction/.vs/XAMARINCustomAction/xs/UserPrefs.xml index 902f7bac..a4e02a48 100644 --- a/CustomAction/XAMARINCustomAction/.vs/XAMARINCustomAction/xs/UserPrefs.xml +++ b/CustomAction/XAMARINCustomAction/.vs/XAMARINCustomAction/xs/UserPrefs.xml @@ -1,19 +1,21 @@  - + - - - + + + - - - + + + + + @@ -26,5 +28,5 @@ - + \ No newline at end of file diff --git a/CustomAction/XAMARINCustomAction/XAMARINCustomAction.iOS/CustomActionIos.cs b/CustomAction/XAMARINCustomAction/XAMARINCustomAction.iOS/CustomActionIos.cs index fb60448b..b7965395 100644 --- a/CustomAction/XAMARINCustomAction/XAMARINCustomAction.iOS/CustomActionIos.cs +++ b/CustomAction/XAMARINCustomAction/XAMARINCustomAction.iOS/CustomActionIos.cs @@ -28,7 +28,8 @@ namespace XAMARINCustomAction.iOS private bool Increment(UIAccessibilityCustomAction customAction) { - int n = Int32.Parse(MainPage.counter.Text) + 1; + int n = Int32.Parse(MainPage.counter.Text); + n++; Debug.WriteLine("PIPPO: clicked increment"); MainPage.counter.Text = "" + (n); return true; @@ -47,25 +48,5 @@ namespace XAMARINCustomAction.iOS return true; } - - - /*private bool Increment() - { - int n = Int32.Parse(mainpage.counter.Text); - Console.WriteLine("PIPPO: clicked on increment"); - Debug.WriteLine($"PIPPO: clicked on increment {n}"); - mainpage.counter.Text = "" + (n++); - - }*/ - - - /*[Export("Decrement:")] - private void Decrement() - { - Console.WriteLine("PIPPO: clicked on decrement"); - int n = Int32.Parse(mainpage.counter.Text); - mainpage.counter.Text = "" + (n--); - }*/ - } } -- 2.18.1