public void timer_2_Elapsed(object sender, ElapsedEventArgs e) { this.timer_2.Enabled = false; this.timer_2.Close(); this.timer_2.Dispose(); int num = 0; try { foreach (int list0 in THIET_LAP_BOSS_CLASS2.list_0) { foreach (TBL_XWWL_NPC value in MapClass.GetnpcTemplate(int.Parse(this.string_0[1])).Values) { if (value.FLD_INDEX != list0) { continue; } num++; } } } catch (Exception exception) { Form1.WriteLine(1, string.Concat("计算BOSS攻城的怪物所剩数量出错:", exception)); } if (num <= 0) { try { foreach (Players player in World.allConnectedChars.Values) { player.System_Announcement(string.Concat("[", TBL_XWWL_MAP.smethod_0(int.Parse(this.string_0[1])), "]保卫战中获得胜利")); } } catch (Exception exception1) { Form1.WriteLine(1, string.Concat("THOI_GIAN_KET_THUC_SU_KIEN3 说话2 出错:", exception1)); } } else { try { foreach (Players value1 in World.allConnectedChars.Values) { value1.System_Announcement(string.Concat("非常遗憾,怪物们已经占领[", TBL_XWWL_MAP.smethod_0(int.Parse(this.string_0[1])), "]你们的安全正在受到威胁,请在下一次战斗中务必把可恶的怪物消灭掉")); } this.Dispose(); } catch (Exception exception2) { Form1.WriteLine(1, string.Concat("THOI_GIAN_KET_THUC_SU_KIEN3 说话 出错:", exception2)); this.Dispose(); } } }