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(); }
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); } }
public void SetOccupyDetailinfo(MINE_MILITARY_USER_SOLINFO info) { }