Beispiel #1
0
        private void UserClick(object sender)
        {
            Label         Caller = sender as Label;
            UserIndieGame igame  = new UserIndieGame();

            for (int i = 0; i < indies.Count; i++)
            {
                if (Caller.Text == indies[i].Name)
                {
                    if (igame.run(indies[i], user) == DialogResult.OK)
                    {
                        user = igame.getUser();
                    }
                }
            }
        }
Beispiel #2
0
 /// <summary>
 /// Label4 clicked
 /// </summary>
 /// <param name="sender"> Event sender</param>
 /// <param name="e"> Event argument</param>
 private void Label4_Click(object sender, EventArgs e)
 {
     UserIndieGame newIgame = new UserIndieGame();
     this.Hide();
     newIgame.Run(this.textBox1.Text, this.richTextBox1.Text, this.pictureBox1.Image);
     this.Show();
 }
Beispiel #3
0
        /// <summary>
        /// User click
        /// </summary>
        /// <param name="sender"> Event sender.</param>
        private void UserClick(object sender)
        {
            Label caller = sender as Label;
            UserIndieGame igame = new UserIndieGame();
            for (int i = 0; i < this.indies.Count; i++)
            {
                if (caller.Text == this.indies[i].Name)
                {
                    if (igame.Run(this.indies[i], this.user) == DialogResult.OK)
                    {

                        Database.Indie.buy(this.user.Id, this.indies[i].Id);
                        this.user = igame.GetUser();
                    }
                }
            }
        }
Beispiel #4
0
 private void UserClick(object sender)
 {
     Label Caller = sender as Label;
     UserIndieGame igame=new UserIndieGame();
     for (int i = 0; i < indies.Count; i++)
     {
         if (Caller.Text == indies[i].Name)
         {
             if (igame.run(indies[i], user) == DialogResult.OK)
             {
                 user = igame.getUser();
             }
         }
     }
 }