public frmOAuth_Management() { InitializeComponent(); Access = new AccessHelper(); ErrorProvider1 = new ErrorProvider(); OAuthAccount = new UDT.oAuthAccount(); this.Load += new EventHandler(frmOAuth_Management_Load); }
private void frmOAuth_Management_Load(object sender, EventArgs e) { List<UDT.oAuthAccount> oAuths = Access.Select<UDT.oAuthAccount>(); if (oAuths.Count > 0) { this.OAuthAccount = oAuths.ElementAt(0); this.txtClientID.Text = this.OAuthAccount.ClientID; this.txtSecret.Text = this.OAuthAccount.Secret; } }