예제 #1
0
 private void RivalSupportCardPicRenew()
 {
     if (this.Controls.Contains(RivalSupportCardPic))
     {
         this.Controls.Remove(RivalSupportCardPic);
         RivalSupportCardPic.Dispose();
     }
     if (Rival.Support.CardList.Count > 0)
     {
         RivalSupportCardPic = new CardPic(Rival.Support.CardList[Rival.Support.CardList.Count - 1], "RivalSupport");
         RivalSupportCardPic.Image.RotateFlip(RotateFlipType.Rotate180FlipNone);
         RivalSupportCardPic.Location = new Point(9, 248);
         RivalSupportCardPic.MouseClick += new MouseEventHandler(Card_MouseClick);
         this.Controls.Add(RivalSupportCardPic);
         RivalSupportCardPic.BringToFront();
     }
 }
예제 #2
0
 private void SupportCardPicRenew()
 {
     if (this.Controls.Contains(SupportCardPic))
     {
         this.Controls.Remove(SupportCardPic);
         SupportCardPic.Dispose();
     }
     if (Player.Support.CardList.Count > 0)
     {
         SupportCardPic = new CardPic(Player.Support.CardList[Player.Support.CardList.Count - 1], "Support");
         SupportCardPic.Location = new Point(522, 359);
         SupportCardPic.ContextMenuStrip = contextMenuStrip_Card;
         SupportCardPic.MouseClick += new MouseEventHandler(Card_MouseClick);
         SupportCardPic.MouseDown += new MouseEventHandler(Card_MouseDown);
         this.Controls.Add(SupportCardPic);
         SupportCardPic.BringToFront();
     }
 }
예제 #3
0
 private void RivalGraveCardPicRenew()
 {
     if (this.Controls.Contains(RivalGraveCardPic))
     {
         this.Controls.Remove(RivalGraveCardPic);
         RivalGraveCardPic.Dispose();
     }
     if (Rival.Grave.CardList.Count > 0)
     {
         RivalGraveCardPic = new CardPic(Rival.Grave.CardList[Rival.Grave.CardList.Count - 1], "RivalGrave");
         RivalGraveCardPic.Image.RotateFlip(RotateFlipType.Rotate180FlipNone);
         RivalGraveCardPic.Location = new Point(9, 7);
         RivalGraveCardPic.ContextMenuStrip = contextMenuStrip_RivalCard;
         RivalGraveCardPic.MouseClick += new MouseEventHandler(Card_MouseClick);
         RivalGraveCardPic.MouseDown += new MouseEventHandler(Card_MouseDown);
         RivalGraveCardPic.MouseDoubleClick += new MouseEventHandler(RivalGrave_MouseDoubleClick);
         this.Controls.Add(RivalGraveCardPic);
         RivalGraveCardPic.BringToFront();
     }
 }
예제 #4
0
 private void GraveCardPicRenew()
 {
     if (this.Controls.Contains(GraveCardPic))
     {
         this.Controls.Remove(GraveCardPic);
         GraveCardPic.Dispose();
     }
     if (Player.Grave.CardList.Count > 0)
     {
         GraveCardPic = new CardPic(Player.Grave.CardList[Player.Grave.CardList.Count - 1], "Grave");
         GraveCardPic.Location = new Point(522, 602);
         GraveCardPic.ContextMenuStrip = contextMenuStrip_Card;
         GraveCardPic.MouseClick += new MouseEventHandler(Card_MouseClick);
         GraveCardPic.MouseDown += new MouseEventHandler(Card_MouseDown);
         GraveCardPic.MouseDoubleClick += new MouseEventHandler(Grave_MouseDoubleClick);
         this.Controls.Add(GraveCardPic);
         GraveCardPic.BringToFront();
     }
 }
예제 #5
0
 private void DeckCardPicRenew()
 {
     if (this.Controls.Contains(DeckCardPic))
     {
         this.Controls.Remove(DeckCardPic);
         DeckCardPic.Dispose();
     }
     if (Player.Deck.CardList.Count > 0)
     {
         DeckCardPic = new CardPic(Player.Deck.CardList[0], "Deck");
         DeckCardPic.Location = new Point(522, 478);
         if (!DeckCardPic.FrontShown)
         {
             DeckCardPic.ReverseToBack();
         }
         DeckCardPic.ContextMenuStrip = contextMenuStrip_Card;
         DeckCardPic.MouseDown += new MouseEventHandler(Card_MouseDown);
         DeckCardPic.MouseClick += new MouseEventHandler(Card_MouseClick);
         DeckCardPic.MouseDoubleClick += new MouseEventHandler(Deck_MouseDoubleClick);
         this.Controls.Add(DeckCardPic);
         DeckCardPic.BringToFront();
     }
 }
예제 #6
0
 private void RivalDeckCardPicRenew()
 {
     if (Controls.Contains(RivalDeckCardPic))
     {
         Controls.Remove(RivalDeckCardPic);
         RivalDeckCardPic.Dispose();
     }
     if (Rival.Deck.CardList.Count > 0)
     {
         RivalDeckCardPic = new CardPic(Rival.Deck.CardList[0], "RivalDeck", this);
         if (!Rival.Deck.CardList[0].FrontShown)
         {
             RivalDeckCardPic.ReverseToBack();
         }
         RivalDeckCardPic.Image.RotateFlip(RotateFlipType.Rotate180FlipNone);
         RivalDeckCardPic.Location = new Point(9, 131);
         RivalDeckCardPic.ContextMenuStrip = contextMenuStrip_RivalCard;
         RivalDeckCardPic.MouseDown += new MouseEventHandler(Card_MouseDown);
         RivalDeckCardPic.MouseClick += new MouseEventHandler(Card_MouseClick);
         Controls.Add(RivalDeckCardPic);
         RivalDeckCardPic.BringToFront();
     }
 }
예제 #7
0
 private void DeckCardPicRenew()
 {
     if (GameOn || WatchingMode)
     {
         label_DeckLabel.Visible = true;
         label_DeckLabel.Text = LabelDeckTotalString + Player.Deck.CardList.Count.ToString();
         if (Player.Deck.CardList.Count <= 10)
         {
             label_DeckLabel.ForeColor = Color.Red;
         }
         else
         {
             label_DeckLabel.ForeColor = Color.Black;
         }
     }
     if (Controls.Contains(DeckCardPic))
     {
         Controls.Remove(DeckCardPic);
         DeckCardPic.Dispose();
     }
     if (Player.Deck.CardList.Count > 0)
     {
         DeckCardPic = new CardPic(Player.Deck.CardList[0], "Deck", this);
         DeckCardPic.Location = new Point(522, 478);
         if (!DeckCardPic.FrontShown)
         {
             DeckCardPic.ReverseToBack();
         }
         if (!WatchingMode)
         {
             DeckCardPic.MouseDoubleClick += new MouseEventHandler(Deck_MouseDoubleClick);
         }
         DeckCardPic.ContextMenuStrip = contextMenuStrip_Card;
         DeckCardPic.MouseDown += new MouseEventHandler(Card_MouseDown);
         DeckCardPic.MouseClick += new MouseEventHandler(Card_MouseClick);
         Controls.Add(DeckCardPic);
         DeckCardPic.BringToFront();
     }
 }