コード例 #1
0
        void PopulateTable()
        {
            try
            {
                Log.Debug("MWC", "EXHIBITORS PopulateTable");

                if (usergroups == null || usergroups.Count == 0)
                {
                    Log.Debug("MWC", "EXHIBITORS PopulateTable GetExhibitors");
                    this.usergroups = MWC.BL.Managers.UserGroupManager.GetUserGroups();

                    if (this.usergroups.Count > 0)
                    {
                        // create our adapter
                        this.usergroupListAdapter = new MWC.Adapters.UserGroupListAdapter(this, this.usergroups);

                        //Hook up our adapter to our ListView
                        this.exhibitorListView.Adapter = this.usergroupListAdapter;
                    }
                }
            }
            catch (Exception e)
            {
                Log.Wtf("MWC", e.ToString());
            }
        }
コード例 #2
0
        void PopulateTable()
        {
            try
            {
                Log.Debug("MWC", "EXHIBITORS PopulateTable");

                if (usergroups == null || usergroups.Count == 0)
                {
                    Log.Debug("MWC", "EXHIBITORS PopulateTable GetExhibitors");
                    this.usergroups = MWC.BL.Managers.UserGroupManager.GetUserGroups();

                    if (this.usergroups.Count > 0)
                    {
                        // create our adapter
                        this.usergroupListAdapter = new MWC.Adapters.UserGroupListAdapter(this, this.usergroups);

                        //Hook up our adapter to our ListView
                        this.exhibitorListView.Adapter = this.usergroupListAdapter;
                    }
                }
            }
            catch (Exception e)
            {
                Log.Wtf("MWC", e.ToString());
            }
        }