diff --git a/MonoStockPortfolio/Activites/ConfigScreen/ConfigActivity.cs b/MonoStockPortfolio/Activites/ConfigScreen/ConfigActivity.cs index 808e623..0fefa6c 100644 --- a/MonoStockPortfolio/Activites/ConfigScreen/ConfigActivity.cs +++ b/MonoStockPortfolio/Activites/ConfigScreen/ConfigActivity.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.Linq; using Android.App; @@ -14,7 +15,6 @@ namespace MonoStockPortfolio.Activites.ConfigScreen public class ConfigActivity : Activity, IConfigView { [LazyView(Resource.Id.configList)] private ListView ConfigList; - [LazyView(Resource.Id.btnSaveConfig)] private Button SaveConfigButton; [IoC] IConfigPresenter _presenter; @@ -36,9 +36,27 @@ namespace MonoStockPortfolio.Activites.ConfigScreen WireUpEvents(); } - void WireUpEvents() + private void WireUpEvents() { - SaveConfigButton.Click += SaveConfigButton_Click; + ConfigList.ItemClick += ConfigList_ItemClick; + } + + void ConfigList_ItemClick(object sender, ItemEventArgs e) + { + SaveConfiguration(); + } + + void SaveConfiguration() + { + var checkedItems = new List(); + for(int i =0;i(); - for(int i =0;i diff --git a/MonoStockPortfolio/Resources/layout/config.axml b/MonoStockPortfolio/Resources/layout/config.axml index 33c4210..3971d60 100644 --- a/MonoStockPortfolio/Resources/layout/config.axml +++ b/MonoStockPortfolio/Resources/layout/config.axml @@ -4,9 +4,6 @@ android:layout_width="fill_parent" android:layout_height="fill_parent"> -