protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Checklist);

            //Action bar
            InitializeActionBar(SupportActionBar);
            delete = ActionBarDelete;

            ActionBarTitle.Text = "Totemisatie checklist";

            sharedPrefs = GetSharedPreferences("checklist", FileCreationMode.Private);
            var ser = sharedPrefs.GetString("states", "empty");
            List <List <bool> > states;

            if (!ser.Equals("empty"))
            {
                states = JsonSerializer.DeserializeFromString <List <List <bool> > >(ser);
            }
            else
            {
                states = null;
            }

            delete.SetImageResource(Resource.Drawable.ic_reset_white_24dp);
            delete.Click     += ResetChecklist;
            delete.Visibility = ViewStates.Visible;

            expand = FindViewById <ExpandableListView>(Resource.Id.expand);

            InitializeExpandableListView();
            expandAdapater = new ExpendListAdapter(this, dictGroup, states);
            expand.SetAdapter(expandAdapater);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate (savedInstanceState);

            SetContentView (Resource.Layout.Checklist);

            InitializeActionBar (SupportActionBar);

            ActionBarTitle.Text = "Totemisatie checklist";

            sharedPrefs = GetSharedPreferences("checklist", FileCreationMode.Private);
            var ser = sharedPrefs.GetString("states", "empty");
            List<List<bool>> states;
            if(!ser.Equals("empty"))
                states = JsonSerializer.DeserializeFromString<List<List<bool>>>(ser);
            else
                states = null;

            expand = FindViewById<ExpandableListView>(Resource.Id.expand);

            InitializeExpandableListView ();
            expandAdapater = new ExpendListAdapter(this, dictGroup, states);
            expand.SetAdapter(expandAdapater);
        }