Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void
Example #1
0
 private void 查看手牌ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CardSetView CheckHandRegion = new CardSetView(Player.Hand, "Hand", Player, this);
     CheckHandRegion.Owner = this;
     CheckHandRegion.ShowDialog();
     CheckHandRegion.Dispose();
 }
Example #2
0
 private void 查看退避区ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CardSetView CheckGraveRegion = new CardSetView(Player.Grave, "Grave", Player, this);
     CheckGraveRegion.Owner = this;
     CheckGraveRegion.ShowDialog();
     CheckGraveRegion.Dispose();
 }
Example #3
0
 private void 查看卡组ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     msgProcessor.Send("CheckDeck", "#查看卡组。");
     CardSetView CheckDeckRegion = new CardSetView(Player.Deck, "Deck", Player, this);
     CheckDeckRegion.Owner = this;
     CheckDeckRegion.ShowDialog();
     CheckDeckRegion.Dispose();
 }
Example #4
0
 private void 查看对手退避区ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Rival.Grave.CardList.Count > 0)
     {
         CardSetView CheckRivalGraveRegion = new CardSetView(Rival.Grave, "RivalGrave", Rival, this);
         CheckRivalGraveRegion.Owner = this;
         CheckRivalGraveRegion.ShowDialog();
         CheckRivalGraveRegion.Dispose();
     }
 }
Example #5
0
 private void 查看退避区ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Player.Grave.CardList.Count > 0)
     {
         CardSetView CheckGraveRegion = new CardSetView(Player.Grave, "Grave", Player, this);
         CheckGraveRegion.Owner = this;
         CheckGraveRegion.ShowDialog();
         CheckGraveRegion.Dispose();
     }
     else
     {
         if (Language == Language.Chinese)
         {
             MessageBox.Show("退避区为空。", "查看退避区");
         }
         else
         {
             MessageBox.Show("Retreat is empty.", "Check Retreat");
         }
     }
 }
Example #6
0
 private void 查看羁绊区ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if ((Player.Kizuna.CardList.Count + Player.KizunaUsed.CardList.Count) > 0)
     {
         CardSetView CheckKizunaRegion = new CardSetView(Player.Kizuna, "Kizuna", Player, this);
         CheckKizunaRegion.Owner = this;
         CheckKizunaRegion.ShowDialog();
         CheckKizunaRegion.Dispose();
     }
     else
     {
         if (Language == Language.Chinese)
         {
             MessageBox.Show("羁绊区为空。", "查看羁绊区");
         }
         else
         {
             MessageBox.Show("Bond is empty.", "Check Bond");
         }
     }
 }
Example #7
0
 private void 查看手牌ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Player.Hand.CardList.Count > 0)
     {
         CardSetView CheckHandRegion = new CardSetView(Player.Hand, "Hand", Player, this);
         CheckHandRegion.Owner = this;
         CheckHandRegion.ShowDialog();
         CheckHandRegion.Dispose();
     }
     else
     {
         if (Language == Language.Chinese)
         {
             MessageBox.Show("手牌为空。", "查看手牌");
         }
         else
         {
             MessageBox.Show("There is no card in Hand.", "Check Hand");
         }
     }
 }
Example #8
0
 private void 查看对手退避区ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Rival.Grave.CardList.Count > 0)
     {
         CardSetView CheckRivalGraveRegion = new CardSetView(Rival.Grave, "RivalGrave", Rival, this);
         CheckRivalGraveRegion.Owner = this;
         CheckRivalGraveRegion.ShowDialog();
         CheckRivalGraveRegion.Dispose();
     }
     else
     {
         if (Language == Language.Chinese)
         {
             MessageBox.Show("对手退避区为空。", "查看对手退避区");
         }
         else
         {
             MessageBox.Show("Opponent's Retreat is empty.", "Check Opponent's Retreat");
         }
     }
 }
Example #9
0
 private void 查看卡组ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Player.Deck.CardList.Count > 0)
     {
         if (Language == Language.Chinese)
         {
             msgProcessor.Send("CheckDeck", "#查看卡组。");
         }
         else
         {
             msgProcessor.Send("CheckDeck", "#Check Deck.");
         }
         CardSetView CheckDeckRegion = new CardSetView(Player.Deck, "Deck", Player, this);
         CheckDeckRegion.Owner = this;
         CheckDeckRegion.ShowDialog();
         CheckDeckRegion.Dispose();
     }
     else
     {
         if (Language == Language.Chinese)
         {
             MessageBox.Show("卡组为空。", "查看卡组");
         }
         else
         {
             MessageBox.Show("Deck is empty.", "Check Deck");
         }
     }
 }