Ejemplo n.º 1
0
    public void ShowMilitarySolInfo()
    {
        NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1);

        if (charPersonInfo == null)
        {
            return;
        }
        string empty = string.Empty;

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1410"),
            "targetname",
            charPersonInfo.GetCharName()
        });

        this.m_lTitle.SetText(empty);
        foreach (KeyValuePair <int, MINE_MILITARY_USER_SOLINFO> current in SoldierBatch.MINE_INFO.GetUser_SolList())
        {
            MINE_MILITARY_USER_SOLINFO value = current.Value;
            byte ui8BatchIndex = value.ui8BatchIndex;
            this.m_itOccMilitary[(int)ui8BatchIndex].Visible = true;
            this.m_btOccMilitary[(int)ui8BatchIndex].Visible = true;
            this.m_itOccMilitary[(int)ui8BatchIndex].SetSolImageTexure(eCharImageType.SMALL, value.mine_solinfo[0].i32Kind, (int)value.mine_solinfo[0].ui8Grade);
            this.m_btOccMilitary[(int)ui8BatchIndex].Data = current;
            Button expr_EF = this.m_btOccMilitary[(int)ui8BatchIndex];
            expr_EF.Click = (EZValueChangedDelegate)Delegate.Combine(expr_EF.Click, new EZValueChangedDelegate(this.ClickOccupyDetailInfo));
        }
        this.Show();
    }
Ejemplo n.º 2
0
    public void ClickOccupyDetailInfo(IUIObject obj)
    {
        MINE_MILITARY_USER_SOLINFO mINE_MILITARY_USER_SOLINFO = obj.Data as MINE_MILITARY_USER_SOLINFO;

        if (mINE_MILITARY_USER_SOLINFO != null)
        {
            this.SetOccupyDetailinfo(mINE_MILITARY_USER_SOLINFO);
        }
    }
Ejemplo n.º 3
0
 public void SetOccupyDetailinfo(MINE_MILITARY_USER_SOLINFO info)
 {
 }