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(); } } } }
/// <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(); }
/// <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(); } } } }
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(); } } } }