Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void
예제 #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();
 }
예제 #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();
 }
예제 #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();
 }
예제 #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();
     }
 }
예제 #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");
         }
     }
 }
예제 #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");
         }
     }
 }
예제 #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");
         }
     }
 }
예제 #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");
         }
     }
 }
예제 #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");
         }
     }
 }