protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.SettingsView); Button refreshDatabaseButton = FindViewById <Button>(Resource.Id.SettingsRefreshDatabaseButton); refreshDatabaseButton.Click += (object sender, EventArgs e) => { DatabaseFunctions database = new DatabaseFunctions(); database.RefreshDatabase(this.BaseContext); }; }
public ActionFoundReceiver(BlueToothDiscover activity) { mBlueToothDiscover = activity; context = context; database = new DatabaseFunctions(activity.BaseContext); }