private void setUserInfo(User SelectedUser) { if (SelectedUser != null) { this.TextBox1.Text = SelectedUser.IGName; this.TextBox2.Text = SelectedUser.UserName; this.TextBox4.Text = SelectedUser.Password; this.TextBox5.Text = SelectedUser.Funds.ToString(); this.TextLabel7.Text = "Admin"; this.checkBox1.Text = "Status"; this.checkBox1.Checked = FAM.CheckUserAdmin(SelectedUser); this.TextLabel7.Visible = true; this.checkBox1.Visible = true; } else { updateTable(); this.Notification.Text = "Search Again."; } }