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 { Console.WriteLine(q.ToString()); listBox1.Items.Clear(); listBox1.Items.AddRange(RobloxApi.SearchForPlaces(q)); } catch { } }
private void button1_Click(object sender, EventArgs e) { try { int i = int.Parse(textBox1.Text); pictureBox1.Image = RobloxApi.GetThumbnailImage(RobloxApi.GetProductInfo(i), 110, 110); } catch (Exception ex) { MessageBox.Show("An error occured while getting the image: " + ex.Message); } }
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; }