// update buttons and populate list if possible private void UpdateHMIAndPopulate(bool accountconfigured) { // Textview to diplay good or bad account information TextView lblAccountInfo = FindViewById <TextView>(Resource.Id.lblAccountInfo); // Get buttons ImageButton button1 = FindViewById <ImageButton>(Resource.Id.Update); ImageButton button2 = FindViewById <ImageButton>(Resource.Id.Add); ImageButton button4 = FindViewById <ImageButton>(Resource.Id.MenuSel); // We quickly (re)check validity of GC account information if (!accountconfigured) { // No valid information, // Deactivate Update, Add, Delete. Keep Configure button1.Enabled = false; button2.Enabled = false; button4.Enabled = false; lblAccountInfo.Text = this.Resources.GetString(Resource.String.AccountConfigure); } else { // Valid information ! // Activate Update, Add, Delete. Keep Configure button1.Enabled = true; button2.Enabled = true; button4.Enabled = true; lblAccountInfo.Text = this.Resources.GetString(Resource.String.AccountGood) + " " + _login; // Get list of emails first ! _emails = _gcstuffs.GetListOfEmails(); // Start an update... Update(); } }