Exemple #1
0
 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."); }
 }
Exemple #2
0
 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());
        }
Exemple #4
0
 public void GetAndShowBlurb(int id)
 {
     richTextBox1.Text          = RobloxApi.GetUserBlurb(id);
     toolStripStatusLabel1.Text = RobloxApi.GetUserById(id).Username;
 }