public void ChangeMode(NewGuildWarDetailInfoDlg.eMODE eMode) { this.m_iChangeCurSelectIndex = -1; this.m_iChangeOldSelectIndex = -1; for (int i = 0; i < 9; i++) { this.m_i64ChangeMilitaryID[i] = 0L; } if (eMode == NewGuildWarDetailInfoDlg.eMODE.eMODE_NORMAL) { this.m_itAllySelectSolLarge[this.m_iCurSelectIndex].Visible = true; this.m_btAllySelectSolLarge[this.m_iCurSelectIndex].Visible = true; this.m_dtAllyLeaderLarge[this.m_iCurSelectIndex].Visible = true; this.m_itAllySelectSolSmall[this.m_iCurSelectIndex].Visible = false; this.m_btAllySelectSolSmall[this.m_iCurSelectIndex].Visible = false; this.m_dtAllyLeaderSmall[this.m_iCurSelectIndex].Visible = false; this.m_btLeaderCancel.Visible = true; for (int i = 0; i < 9; i++) { this.m_btAllySelectSolSmall[i].AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSelectAllyInfoSmall)); this.m_btAllySelectSolSmall[i].RemoveValueChangedDelegate(new EZValueChangedDelegate(this.ClickChangeRaidBattlePos)); } this.SetDetailInfoSub(this.m_iCurSelectIndex); } else { this.m_dtAllySelectImage[this.m_iCurSelectIndex].Visible = false; this.m_itAllySelectSolLarge[this.m_iCurSelectIndex].Visible = false; this.m_btAllySelectSolLarge[this.m_iCurSelectIndex].Visible = false; this.m_dtAllyLeaderLarge[this.m_iCurSelectIndex].Visible = false; this.m_itAllySelectSolSmall[this.m_iCurSelectIndex].Visible = true; this.m_btAllySelectSolSmall[this.m_iCurSelectIndex].Visible = true; ApplyInfo applyInfoFromRaidBattlePos = this.GetApplyInfoFromRaidBattlePos((byte)this.m_iCurSelectIndex); if (applyInfoFromRaidBattlePos != null && applyInfoFromRaidBattlePos.GetLeader() == 1) { this.m_dtAllyLeaderSmall[this.m_iCurSelectIndex].Visible = true; } this.m_btLeaderCancel.Visible = false; for (int i = 0; i < 9; i++) { this.m_btAllySelectSolSmall[i].RemoveValueChangedDelegate(new EZValueChangedDelegate(this.ClickSelectAllyInfoSmall)); this.m_btAllySelectSolSmall[i].AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickChangeRaidBattlePos)); applyInfoFromRaidBattlePos = this.GetApplyInfoFromRaidBattlePos((byte)i); if (applyInfoFromRaidBattlePos != null) { this.m_i64ChangeMilitaryID[i] = applyInfoFromRaidBattlePos.GetMilitaryID(); } } } }
public bool IsChangeRaidBattlePos() { for (int i = 0; i < 9; i++) { ApplyInfo applyInfoFromRaidBattlePos = this.GetApplyInfoFromRaidBattlePos((byte)i); if (applyInfoFromRaidBattlePos == null && this.m_i64ChangeMilitaryID[i] > 0L) { return(true); } if (applyInfoFromRaidBattlePos != null && applyInfoFromRaidBattlePos.GetMilitaryID() != this.m_i64ChangeMilitaryID[i]) { return(true); } } return(false); }