private void button1_Click(object sender, EventArgs e) { try { User usr = RobloxApi.GetUserById(int.Parse(textBox1.Text)); Console.WriteLine(usr.Id + " " + usr.Username); label2.Text = usr.Points.ToString(); } catch { MessageBox.Show("An error occured when getting User's Points."); } }
private void button1_Click(object sender, EventArgs e) { try { int i = -1; int.TryParse(textBox1.Text, out i); Console.WriteLine(i.ToString()); if (i != 0) { pictureBox1.Image = RobloxApi.GetUserById(i).Thumbnail; } } catch (Exception ex) { MessageBox.Show("An error occured: " + ex.Message); } }
private void button1_Click(object sender, EventArgs e) { User usr = RobloxApi.GetUserById(1); MessageBox.Show(usr.Membership.ToString()); }
public void GetAndShowBlurb(int id) { richTextBox1.Text = RobloxApi.GetUserBlurb(id); toolStripStatusLabel1.Text = RobloxApi.GetUserById(id).Username; }