Esempio n. 1
0
	public Tbl_PetGroup_Record(BinaryReader br)
	{
		m_Index = br.ReadInt32();
		m_GroupType = (eGroupType)br.ReadInt32();
			
		for(int i=1; i<=AsTableManager.sPetGroupCount; ++i)
		{
			int id = br.ReadInt32();
			m_listRandID.Add(id);
			
			int prob = br.ReadInt32();
			m_listRandProb.Add(prob);
		}
	}
Esempio n. 2
0
 virtual protected void InitGroupType()
 {
     _groupType = eGroupType.PLAYER;
 }
Esempio n. 3
0
        protected void lnkPendingInvitations_Click(object sender, EventArgs e)
        {
            ShowPnlPendingActions = true;

            Results = null;

            GroupType = eGroupType.MyGroups;
            username = CurrentUserSession.Username;
            FetchGroupMember = true;
            pnlSearchParameters.Visible = false;

            mvGroups.SetActiveView(viewGroups);
            LargeBoxStart1.Title = Lang.Trans("Pending Invitations");
            enableMenuLinks();
            lnkPendingInvitations.Enabled = false;
        }
Esempio n. 4
0
        protected void lnkNewGroups_Click(object sender, EventArgs e)
        {
            Results = null;

            ShowPnlPendingActions = false;

            GroupType = eGroupType.NewGroups;
            ViewedCategoryID = null;
            username = null;
            FetchGroupMember = false;
            pnlSearchParameters.Visible = false;

            mvGroups.SetActiveView(viewGroups);

            enableMenuLinks();
            lnkNewGroups.Enabled = false;

            LargeBoxStart1.Title = Lang.Trans("New Groups");
        }
Esempio n. 5
0
        protected void lnkMyGroups_Click(object sender, EventArgs e)
        {
            if (CurrentUserSession == null)
            {
                Response.Redirect("~/Login.aspx");
                return;
            }

            Results = null;

            ShowPnlPendingActions = false;

            GroupType = eGroupType.MyGroups;
            ViewedCategoryID = null;
            username = CurrentUserSession.Username;
            FetchGroupMember = true;
            pnlSearchParameters.Visible = false;
            mvGroups.SetActiveView(viewGroups);

            enableMenuLinks();
            lnkMyGroups.Enabled = false;

            LargeBoxStart1.Title = Lang.Trans("My Groups");
        }
Esempio n. 6
0
        protected void lnkBrowseGroups_Click(object sender, EventArgs e)
        {
            ShowPnlPendingActions = false;
            GroupType = eGroupType.None;

            mvGroups.SetActiveView(viewCategories);

            enableMenuLinks();
            lnkBrowseGroups.Enabled = false;

            LargeBoxStart1.Title = Lang.Trans("Group Categories");

            txtGroupToSearch.Text = "";
            txtSearchGroupByCategory.Text = "";
            cbSearchInDescription.Checked = false;
            cbSearchInDescriptionByCategory.Checked = false;
        }
Esempio n. 7
0
        protected void dlCategories_ItemCommand(object source, DataListCommandEventArgs e)
        {
            if (e.CommandName == "ViewGroups")
            {
                LargeBoxStart1.Title = Lang.Trans("Groups");

                ViewedCategoryID = Convert.ToInt32(e.CommandArgument);
                Results = null;

                GroupType = eGroupType.ByCategory;
                username = null;
                FetchGroupMember = false;
                pnlSearchParameters.Visible = true;

                mvGroups.SetActiveView(viewGroups);
                lnkBrowseGroups.Enabled = true;
            }
        }