コード例 #1
0
 private void bPickCard_Click(object sender, EventArgs e)
 {
     if (bPickCard.Text == @"Pick card pack" && NewPack != "")
     {
         if (!IsAvailable(AchievementNumber, "Pack"))
         {
             return;
         }
         Properties.Settings.Default.CardPack = NewPack;
         Properties.Settings.Default.CardBack = NewBack;
         Properties.Settings.Default.Save();
         MainPoker.ReplacePacks();
         MessageBox.Show(@"Your new card pack is now enabled !");
     }
     else if (bPickCard.Text == @"Pick card back" && NewBack != "")
     {
         if (!IsAvailable(AchievementNumber, "Back"))
         {
             return;
         }
         Properties.Settings.Default.CardBack = NewBack;
         Properties.Settings.Default.Save();
         MainPoker.ReplaceBacks();
         MessageBox.Show(@"Your new card back is now enabled !");
     }
 }
コード例 #2
0
 public Help(Form callingForm)
 {
     _mainForm = callingForm as MainPoker;
     InitializeComponent();
 }