Example #1
0
        public void Get_ManageGroups()
        {
            try
            {
                if (GroupsManage_Type == "Manage_UserGroups")
                {
                    ManageGroupsSection.Visibility     = ViewStates.Gone;
                    ManageGroupsRecylerView.Visibility = ViewStates.Gone;
                    Txt_Create.Visibility       = ViewStates.Gone;
                    Btn_SearchRandom.Visibility = ViewStates.Gone;
                }
                else if (GroupsManage_Type == "Manage_MyGroups")
                {
                    //Get Group From Database
                    var dbDatabase = new SqLiteDatabase();
                    var localList  = dbDatabase.GetAll_ManageGroups();
                    if (localList != null)
                    {
                        ManageGroupsAdapter.mUserGroupsList =
                            new ObservableCollection <Get_User_Data_Object.Joined_Groups>(localList);
                        ManageGroupsAdapter.BindEnd();
                    }

                    dbDatabase.Dispose();
                }


                Get_CommunitiesList_Group();
            }
            catch (Exception e)
            {
                Crashes.TrackError(e);
            }
        }