Example #1
0
        //also sets all the checkboxes unchecked
        private void ShowDeleteTotems(object sender, EventArgs e)
        {
            foreach (Totem t in totemList)
            {
                t.selected = false;
            }

            totemAdapter.ShowDelete();
            totemAdapter.UpdateData(totemList);
            totemAdapter.NotifyDataSetChanged();

            back.Visibility  = ViewStates.Gone;
            close.Visibility = ViewStates.Visible;
            title.Visibility = ViewStates.Gone;

            delete.Click -= ShowDeleteTotems;
            delete.Click += RemoveSelectedTotems;
        }