Esempio n. 1
0
 public void Open()
 {
     nCount             = 0;
     ButtonSave.Enabled = true;
     SelAttackGuildInfo = null;
     RefCastleList();
     this.ShowDialog();
 }
Esempio n. 2
0
        public bool AddAttackSabukWallOfGuild(string sGuildName, DateTime AttackSabukWall)
        {
            bool          result;
            TAttackerInfo AttackerInfo;
            TGUild        Guild;
            ListViewItem  ListItem;

            result = false;
            Guild  = InListOfGuildName(sGuildName);
            if (Guild == null)
            {
                System.Windows.Forms.MessageBox.Show("输入的行会名不存在!!!", "提示信息", MessageBoxButtons.OK);
                return(result);
            }
            if (CurCastle == null)
            {
                return(result);
            }
            AttackerInfo            = new TAttackerInfo();
            AttackerInfo.AttackDate = AttackSabukWall;
            AttackerInfo.sGuildName = sGuildName;
            AttackerInfo.Guild      = Guild;
            CurCastle.m_AttackWarList.Add(AttackerInfo);

            //ListViewAttackSabukWall.Items.BeginUpdate;
            //try {
            //    ListItem = ListViewAttackSabukWall.Items.Add();
            //    nCount ++;
            //    ListItem.Text = (nCount).ToString();

            //    ListItem.SubItems.AddObject(AttackerInfo.sGuildName, ((AttackerInfo) as Object));
            //    ListItem.SubItems.Add((AttackerInfo.AttackDate).ToString());
            //    CurCastle.Save();
            //    result = true;
            //} finally {

            //    ListViewAttackSabukWall.Items.EndUpdate;
            //}
            return(result);
        }