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
Ejemplo n.º 1
0
 private void 抽复数张卡ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     GetInteger DrawMultipleCards = new GetInteger("抽复数张卡");
     DrawMultipleCards.Owner = this;
     DrawMultipleCards.ShowDialog();
     DrawMultipleCards.Dispose();
 }
Ejemplo n.º 2
0
 private void 抽复数张卡ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Player.Deck.CardList.Count > 0)
     {
         GetInteger DrawMultipleCards = new GetInteger("抽复数张卡", this);
         DrawMultipleCards.Owner = this;
         DrawMultipleCards.ShowDialog();
         DrawMultipleCards.Dispose();
     }
     else
     {
         if (Language == Language.Chinese)
         {
             MessageBox.Show("卡组为空。", "抽复数张卡");
         }
         else
         {
             MessageBox.Show("Deck is empty.", "Draw cards");
         }
     }
 }
Ejemplo n.º 3
0
 private void 查看复数张顶牌ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     GetInteger CheckDeckTopCards = new GetInteger("查看复数张顶牌", this);
     CheckDeckTopCards.Owner = this;
     CheckDeckTopCards.ShowDialog();
     CheckDeckTopCards.Dispose();
 }
Ejemplo n.º 4
0
 private void 将复数张顶牌置于退避区ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     GetInteger MoveDeckTopCardsToGrave = new GetInteger("将复数张顶牌置于退避区", this);
     MoveDeckTopCardsToGrave.Owner = this;
     MoveDeckTopCardsToGrave.ShowDialog();
     MoveDeckTopCardsToGrave.Dispose();
 }